I am trying to find the most recent "new low" in a given range.
I have been using
lowestPrice = MIN(Low, Lookback)[0];
this gives me the absolute low in the given range.
I would like to find the most recent low of a candle whos Low is less then the prior candle; in the last X amount of candles.
The look back period is dynamic so I am not sure which way to approach this be cause I can't just ask if (Low[1] < Low[2] ... ) because the lookback period could be 5 or 500 days.
Hope this makes sense and thank you very much in advance for any help.
Ryan

Comment