OPEN-SOURCE SCRIPT

Chonky ATR Levels 2.0

325
Show ATR based high/low projections.

Choose a custom ATR calculation in the indicator's settings.
The default is a 20day RMA based ATR.


----------How projections are calculated----------

To project the ATR High, the ATR value is added to the low of the current candle that matches the ATR's timeframe.

To project the ATR Low, the ATR value is subtracted from the high of the current candle that matches the ATR's timeframe.

Example:
If a 20day RMA ATR is used:
- the ATR High will be the current day's low + the ATR value.
- the ATR Low will be the current day's high - the ATR value.

*However*, if the price action exceeds either ATR projection, the opposite ATR level will be fixed to the extreme of the period.
See the AUDUSD screenshot above for an example.
The ATR Low was exceeded, so the ATR High projection is capped at the high of day.
If the ATR High is exceeded, the ATR Low would be capped at the low of day.

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.