Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 8/11/2005(UTC) Posts: 104
|
Hi,
Could you please help me with the code below.
Thank you in advance
Kind regards,
Derek
.........................................................
Between the selected Dates (Start and End Dates)
I would like to plot Signal Lines on the dates of the Highest High & 2nd Highest High,
and also Signal Lines on the dates of the Lowest Low & 2nd Lowest Low,
*code*
sDay:=Input("start Day",1,31,10);
sMonth:=Input("start Month",1,12,4);
sYear:=Input("start Year",1800,2200,2015);
nDay:=Input("end Day",1,31,20);
nMonth:=Input("end Month",1,12,7);;
nYear:=Input("end Year",1800,2200,2015);
start:=Year()>sYear OR (Year()=sYear AND (Month()>sMonth OR
Month()=sMonth AND DayOfMonth()>=sDay));
end:=Year()<nYear OR (Year()=nYear AND (Month()<nMonth OR
Month()=nMonth AND DayOfMonth()<=nDay));
H1:=ValueWhen(1,end,HighestSince(1,start,2));
H2:=ValueWhen(2,end,HighestSince(2,start,2));
L1:=ValueWhen(1,end,LowestSince(1,start,1));
L2:=ValueWhen(2,end,LowestSince(2,start,1));
{plot Signal Lines for the event of H1 H2 L1 L2}
H1;H2;L1;L2;
*/code*
|