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

Re: FW: [amibroker] Cycles and lines



PureBytes Links

Trading Reference Links

Panos,
Do not copy from the Expand mode.
Hit on the #3892 number to see the code expanded alone.
If you have data from Jan 2000 it works.
Else change the x0=380 to another, say x0=200
D.T.
--- In amibroker@xxxx, "Panos Boufardeas" <akaraman@xxxx> wrote:
> 
> 
> Hi
> I did all the below however i still can't see the "circles and 
lines" graph
> only an empty chart window :-(
> am i missing something ?
> [Panos Boufardeas]
> -----Original Message-----
> From: Dimitris Tsokakis [mailto:TSOKAKIS@x...]
> 
> 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. ............................
> ...............