SOLVED: RTL for Lowest ATR in x Days

Login or Register

Please login or register in order to view and post in the Forum.

1 post / 0 new
Mickster
Last seen: 2 years 11 months ago
Joined: 06/29/2018 - 17:47
SOLVED: RTL for Lowest ATR in x Days

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)

0