I am trying to find and plot the high and low of a bar which range is more than say 50 points. Basically I want to run a loop when a new day start and when that specific range bar appear want to mark the high low and on breakout of that range take position. Any help please, thanks
I am able to find and plot the high low with bellow code
Spread = Param("Minimum Differnece Between High & Low",50,1,100);
C1 = H-L >= Spread;
// To keep the value until you get a true signal again ...
VH50 = valuewhen(C1,H);
VL50 = valuewhen(C1,L);
// Or just catch the them at the time of their occurence ...
IH50 = iif(C1,H,0);
IL50 = iif(C1,L,0);