Order of Highest High and Lowest Low
-
Is it possible to determine whether the bar that makes the highest high of say the past 50 bars is more recent than the bar that makes the lowest low of the past 50 bars?
Or vice versa? i.e. the bar that makes the lowest low of the past 50 bars is more recent than the bar that makes the highest high of the past 50 bars?
-
try this:

-
Thanks @miro1360
What does the variable 'highestID' do? Where does the variable go? i.e. in which block? Where in the block?
I can see it in the Modify Variables block but no where else?
-
it are examples ... first example is how to store candle number with highest price into variable for further work ... second example is condition block where you can directly compare which candle is older (have greater ID), if highest or lowest price ... these blocks alone are not completly project, it shows you only how to work with information which you asked ...