Jimmyyeo88
New member
def avgBarSize = Average((high - low), 60) * 1.5;
def y = high[3] - low[3]<avgBarSize and high[2]-low[2]<avgBarSize and high[1]-low[1]<avgBarSize and high-low<avgBarSize;
hi, would like to check, how to make the above statement to become a fold statement? it seems doesn't make sense if i want to compare for 20 bars
I need to use it on scan
def y = high[3] - low[3]<avgBarSize and high[2]-low[2]<avgBarSize and high[1]-low[1]<avgBarSize and high-low<avgBarSize;
hi, would like to check, how to make the above statement to become a fold statement? it seems doesn't make sense if i want to compare for 20 bars
I need to use it on scan