I am using the following RTL in a scan to identify when the current ATR is the lowest ATR in the past 5 days (or bars).
AVG (TR,10) < MIN (AVG(TR.1, 10), 5)
This produces results that are mostly correct, but there are symbols where the current ATR is clearly not the lowest in the past 5 bars. I check the results by observing an ATR indicator applied to the chart.
Have also tried putting the .1 reference outside of the expression but have similar incorrect results.
Thanks.
Correct RTL:
TR < MIN (TR.1,5)