Getting highest value except first 50 bars

How to get the highest value of an array, excluding the first 50 value of that array. Thanks

How about something like this untested snippet:

highVal = LastValue(HighestSince(BarIndex() == 50, myArray));
4 Likes

Another idea:

I think that you are looking for the highest value of the array 50 bars ago. Something like this (also untested) snippet?:

highVal = Ref( HHV(myArray), -50);

Ops, I forgot to specify the number of bars to use (all bars except 50) in the HHV function:

highVal = Ref( HHV(myArray, BarCount-50), -50);