What would be the simplest way in ninjascript to see if the current candle is the highest close in the 10 last bars? I am hoping that I can apply this solution to other comparisons, like indicators, etc. I am using CountIf(() more and more, but I don't think it can compare the current value with all the previous values.
Many thanks and have a great week.

Comment