The MAX or MIN Ninjascript functions return the maximum or minimum values of a dataseries N bars ago. So, MAX(High,20)[0] will return the current highest high within 20 bars, correct?
I want to find the low of that highest high. So, say if the highest high occured 10 bars ago, I want to know the value of Low[10]. The MAX and MIN functions must contain some sort of looping logic. Is there any way I can get the 10 out of there functions?
Comment