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 a publication is governed by House Rules. You can favorite it to use it on a chart.
Release Notes: This version displays the average range on the upper line. If "Display average range as forex pips?" is enabled, the range value will be shown in pips.
Release Notes: Update parameter names
Release Notes: Fixed bug in yearly ADR. Thanks to @kiero!
Release Notes: Use the new arrays feature to track how many ADR to show
Release Notes: Add line color inputs
Release Notes: Fixed label alignment issue
Want to use this script on a chart?