PROTECTED SOURCE SCRIPT
Updated

ATR Limits | Custom Timeframe | Day | Week | Month | H4 | H1

3 442
Marks out the ATR limits for your own custom selected timeframe

Allows you to set an "Exact Distance" for the ATR.

Note:
If the "Exact Distance" is set = 0
then an ATR will be calculated for you based on an average of the "ATR Periods"
i.e. By Default: atr(20)

Otherwise if "Exact Distance" is not = 0
then ATR limits will be calculated using your specified distance

E.g. Exact Distance = 0.5
Low of Day = 1.0
High of Day = 1.1

ATR Limit Low = 1.1 - 0.5 = 0.6
ATR Limit High = 1.0 + 0.5 = 1.5

Enjoy!
Release Notes
Fixed bug in calculating true range gaps

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.