Hi,
Tomasz helped me to have the following code which finds the HHV and LLV of current day in 5 mins TF.
I just want to have the same but for Previous day.
//Today's High and Low & High Close and Low close
xH=BarsSince(Day()!=Ref(Day(),-1));
yH=HHV(H,xH+1);
yhc=HHV(C,xh+1);
Hightoday=IIf(xH==0,yH,Ref(yH,0));
xL=BarsSince(Day()!=Ref(Day(),-1));
yL=LLV(L,xL+1);
yLc=LLV(C,xL+1);
LowTODAY=IIf(xL==0,yL,Ref(yL,0));
Any Help Would be Appreciated.
Regards,
Gloria Filamino.