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

FW: [amibroker] Cycles and lines



PureBytes Links

Trading Reference Links


 
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 ?
<SPAN 
class=560262412-14082001>[Panos 
Boufardeas] 
 -----Original 
Message-----From: Dimitris Tsokakis 
[mailto:TSOKAKIS@xxxx]
O. K. I did not cover the subject "circlesand 
lines".
Here you are.
Open Amibroker.
Open Indicator Builder
Select an empty Custom Indicator 
Paste the formula
 
<FONT face=Arial 
size=2>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.<SPAN 
class=560262412-14082001><FONT 
color=#0000ff> ............................ 
<SPAN 
class=560262412-14082001>...............
 
<FONT face=Arial 
size=2>