[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cycles and lines



PureBytes Links

Trading Reference Links

--- In amibroker@xxxx, "Dimitris Tsokakis" <TSOKAKIS@xxxx> wrote:
> O. K. I did not cover the subject "circles and lines".
> Here you are.
> Open Amibroker.
> Open Indicator Builder
> Select an empty Custom Indicator 
> Paste the formula
> 
> maxgraph=6;
> x0=380;
> y0=0;
> R=20;
> x=cum(1);
> y1=y0+sqrt(R^2-(x-x0)^2);
> y2=y0-sqrt(R^2-(x-x0)^2);
> graph0=y1;
> graph1=y2;
> graph1barcolor=graph0barcolor=2;
> y3=iif(cum(1)>x0-R-1 and cum(1)<x0+R,x-x0,-1e10);
> graph2=y3;
> graph2style=1;
> graph2barcolor=2;
> y4=iif(cum(1)>x0-R-1 and cum(1)<x0+R+10,x/2-((x0+R)/2),-1e10);
> graph3=y4;
> graph3barcolor=2;
> 
> (In the case you do not have 400 days data,change x0=380 with 
> another, say x0=200)
> Hit Apply.
> 
> Select ANOTHER empty custom indicator
> Paste THE SAME FORMULA
> Hit Apply AGAIN.
> 
> You will receive the same graph two times.
> Use your vertical line tool to determine point A in BOTH graphs
> Use your vertical line tool to determine point B in BOTH graphs
> Work with any accuracy or zoom you want.
> The points where lines cut the circle are always the same.
> Play with the size of two windows.
> "Legal" circles transform to "illegal" and "dangerous" ellipses,
> BUT the cross points remain and will remain the same.
> 
> It is not so difficult now to imagine that one of those functions
> could be ^NDX graph or any stock graph.You have it in your Amibroker
> and you use it everyday, unless if you do not know it.
> 
> And please DO NOT CHANGE WORDS at will.
> 
> "As you have discussed and shown, if you plot relative to the X & Y 
> axis you usually get an ellipse. This, however, is not what you 
want, "
> 
> BOTH CURVES HERE ARE CIRCLES(CYCLES).
> BOTH CURVES IN #3876 ARE CIRCLES(CYCLES).
> THEY ARE NOT ELLIPSES
> ELLIPSE HAS A DIFFERENT EQUATION.
> In this example we speak about circles(cycles).
> And bring me any "analyst" to prove the opposite.
> It is always easy to speak "in general" and build up "funtamentals"
> BUT it is always easier to prove what we say
> 
> This was the example for circles and lines.
> And, if you remember old wireless words, OVER AND OUT.
> 
> Dimitris Tsokakis