I'm studing hurst cycles and thanks to a member of equis forum i've now a script for the sinewaves that hurst wrote in his famous book.
Can someone tranlsate it in efs?
thanks.
here the metastock indicator:
************************************************** **
{coded for and with LG, 2008}
{copyright 2008, Scott Bunny}
D:=Input("Day of month",1,31,1);
M:=Input("Month",1,12,1);
Y:=Input("Year",1900,2100,2008);
WA2:=Input("wave2",0,10,3);
wavelength:=Input("Wavelength (bars)",1,9999,243);
{bars}
start:=***(
(DayOfMonth()>=D AND Month()=M AND Year()=Y) OR
(Month()>M AND Year()=Y) OR
Year()>Y)=1;
start:=LastValue(ValueWhen(1,start,***(1)));
{x axis values}
x:=360/wavelength * (***(1)-start);
{sine waves}
phase:=-90;
w1:=Sin(8*x+phase);
w2:=2*Sin(4*x+phase);
w3:=wa2*Sin(2*x+phase);
w4:=4*Sin(x+phase);
{hurst cycle}
CYCLE:= (W1+W2+W3+W4);
{plot}
w1;w2;w3;w4;CYCLE;
************************************************** **
gigi
Can someone tranlsate it in efs?
thanks.
here the metastock indicator:
************************************************** **
{coded for and with LG, 2008}
{copyright 2008, Scott Bunny}
D:=Input("Day of month",1,31,1);
M:=Input("Month",1,12,1);
Y:=Input("Year",1900,2100,2008);
WA2:=Input("wave2",0,10,3);
wavelength:=Input("Wavelength (bars)",1,9999,243);
{bars}
start:=***(
(DayOfMonth()>=D AND Month()=M AND Year()=Y) OR
(Month()>M AND Year()=Y) OR
Year()>Y)=1;
start:=LastValue(ValueWhen(1,start,***(1)));
{x axis values}
x:=360/wavelength * (***(1)-start);
{sine waves}
phase:=-90;
w1:=Sin(8*x+phase);
w2:=2*Sin(4*x+phase);
w3:=wa2*Sin(2*x+phase);
w4:=4*Sin(x+phase);
{hurst cycle}
CYCLE:= (W1+W2+W3+W4);
{plot}
w1;w2;w3;w4;CYCLE;
************************************************** **
gigi
Comment