This is how I did it
MIN(Swing(BarsArray[1], 1).SwingLow, X)[0];
MAX(Swing(BarsArray[1], 1).SwingHigh, X)[0];
For some reason it does seem to be working. My impression is these functions find the highest swing high of the the last X days and not the highest of the last X swing highs (which may be useful too but it is not what I am looking for).
Can anybody help please?

Comment