Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 8/11/2005(UTC) Posts: 104
|
Hi,
Is it possible to set the starting date for the starting / bottoming of the Wave formula below
at a Major market low say… 9 March 2009
Using:
Day1 := Input("Day",1,31,9);
Month1 := Input("Month",1,12,3);
Year1 := Input("Year",1900,2400,2009);
BS:=LastValue((BarsSince(DayOfMonth() = Day1 AND Month() = Month1 AND Year()=Year1 )));
Instead of setting the number of days of "Horizontal Shift:"
by trial and error method
WW:=Input("Length:",7,10000,627);
WWW:=WW/6;
OF:=Input("Horizontal Shift:",0,10000,243);
CC:=Cum(30/WWW);
FF:=Frac(LastValue(Cum(1))/WW);
OFF:=WW*FF;
S1:=Abs(Ref(Sin(CC),-LastValue(OFF)-OF));
WW2:=Input("Length:",7,10000,81);
WWW:=WW2/6;
OF:=Input("Horizontal Shift:",0,10000,21);
CC:=Cum(30/WWW);
FF:=Frac(LastValue(Cum(1))/WW2);
OFF:=WW2*FF;
S2:=Abs(Ref(Sin(CC),-LastValue(OFF)-OF));
S1+S2 ;
Kind regards,
Derek
|