Hi All,
I'm trying to automatically identify previous highs once a condition has been met.
def condition = if high > high[1] then high else 0;
(written in logical terms)
def PreviousHigh = if condition > 0, what is the next historical high within the past 100 bars greater than the high of the condition?
def nextPreviousHigh = what is the next historical high before the PreviousHigh?
Thanks as always!
I'm trying to automatically identify previous highs once a condition has been met.
def condition = if high > high[1] then high else 0;
(written in logical terms)
def PreviousHigh = if condition > 0, what is the next historical high within the past 100 bars greater than the high of the condition?
def nextPreviousHigh = what is the next historical high before the PreviousHigh?
Thanks as always!