This applies a 'corrected' formula to the version created by alpine_trader (which is slightly off). It calculates the Average Daily Range (in percent) over the previous 20 periods and plots it in a chart.
I am grateful to GlinckEastwoot for the 'corrected' formula.