OPEN-SOURCE SCRIPT

Bar Width Percent Rank

Updated
A simple script to calculate and show the current percent rank of the absolute open - close (candle bar width) over a given period.
Useful to determine the current volatility.
A higher value indicates that the current period is having a big swing.
Release Notes
updated the position of the label
Release Notes
Show percent rank of bar width in separate chart instead
Volatility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer