OPEN-SOURCE SCRIPT
Updated ADR Percent

Release Notes
Add the ability to select the time period for ADR calculation to be chosen from one of the 5/10/15 daysRelease Notes
Fixed a bug with time range selectionRelease Notes
Added 20 day rangeRelease Notes
Upgrade to pine script version 5Release 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.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.