OPEN-SOURCE SCRIPT

ADR Percent

Updated
Uses past 5 day's daily average ranges and calculates average ADR percentage with respect to latest day's open

Acknowledgement - Uses code from another excellent indicator from critian.d
Release Notes
Add the ability to select the time period for ADR calculation to be chosen from one of the 5/10/15 days
Release Notes
Fixed a bug with time range selection
Release Notes
Added 20 day range
Release Notes
Upgrade to pine script version 5
Release Notes
Fixed a bug in the script where it was incorrectly diving the ADR by 2. Now you should correctly see the ADR to be twice as before.
ADRaverageaveragedailyrangeAverage True Range (ATR)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer