OPEN-SOURCE SCRIPT
Yesterday's ATR Drawer

With this ATR Drawer, you can easily see what yesterday's ATR was compared to today's High/Low, you don't have to draw it yourself, and if you want, it will also show you yesterday's ATR number in the corner.
When a new High/Low is created during the day, the lines automatically adapt. So if a new high is created, the lower ATR line will move up, and vice versa. Every day, it recalculates and redraws the lines to yesterday's ATR level.
You can add 1 line above and 1 line below yesterday's ATR, which will be at the percentage distance from yesterday's original ATR line. So basically this allows you to set the average range that is usually reached after the ATR is broken.
You can set:
- ATR length
- ATR line width
- Line color
- Show/hide yesterday's ATR
- Upper Avr. Range After ATR Exceeded (%)
- Lower Avr. Range After ATR Exceeded (%)
When a new High/Low is created during the day, the lines automatically adapt. So if a new high is created, the lower ATR line will move up, and vice versa. Every day, it recalculates and redraws the lines to yesterday's ATR level.
You can add 1 line above and 1 line below yesterday's ATR, which will be at the percentage distance from yesterday's original ATR line. So basically this allows you to set the average range that is usually reached after the ATR is broken.
You can set:
- ATR length
- ATR line width
- Line color
- Show/hide yesterday's ATR
- Upper Avr. Range After ATR Exceeded (%)
- Lower Avr. Range After ATR Exceeded (%)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.