Moving average of 1-period Percent Change

Another way of finding the average range of the bars using 1 period percentage change of the price and taking an average of them. It's given in percentages and the absolute value of the average can be shown when the option is turned on, or the average including the up and down bars can be shown. Perhaps an alternative way of looking at volatility or range of the bars. If you prefer a line version over histogram, just simply change the style under the settings of the indicator.
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?