if (Low[0] > Low[1]-1.0)
neither of these other 2 lines worked alone as the if statement--ignore the lack of parentheses in these.
Low[2] <= Low[3]+.25
High[1] >= High[2]+.5
is it anything to do with the fact that in the 2 lines that dont work, both tested bars are not the current bar but instead are 1 or 2 or 3 back but in the line that did, one is Low[0]--the current bar?
THAT IS THE PROBLEM because when i change those nonworking lines to always compare just bar[0] with bar[1] for the comparison highs or lows, they worked together.
So how does it get fixed?
Comment