Average Daily Range High Low

This version uses Pine Script v4 line objects which has a limit of 50 bars.
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
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?