Friends, I need some formula for an indicator which can plot the previous days HIGH and LOW in the Current Intraday Chart.....
Thanks...
Dear Guatam ,..
Not sure wether u got the code or not or its working with u or not...
Here we Go ... the code to plot Previous day's High , Low and Close on todays intraday chart ,.. Thanx to jose silva for coding.
Code ===== simply copy n paste in ur indicator =========
=================================================
pds:=1;
{ Day's start }
dStart:=DayOfMonth()<>Ref(DayOfMonth(),-1) OR Cum(1)=2;
{ Previous x Days' High }
Hd:=HighestSince(pds,dStart,H);
Hd:=ValueWhen(1,dStart,ValueWhen(2,1,Hd));
Hd:=ValueWhen(1,Hd<>0,Hd);
{ Previous x Days' Low }
Ld:=LowestSince(pds,dStart,L);
Ld:=ValueWhen(1,dStart,ValueWhen(2,1,Ld));
Ld:=ValueWhen(1,Ld<>0,Ld);
{ Previous Day's Close }
Cd:=ValueWhen(1,dStart,ValueWhen(2,1,C));
Cd:=ValueWhen(1,Cd<>0,Cd);
{ Plotting them on charts ,... }
Hd;Ld;Cd;
========================================================
========================================================
Regards,..
Darsh