OPEN-SOURCE SCRIPT

GMS: % True Range

This just give the range based in % so it can be easily compared to the past. The default setting gives the % range high to low for the current session.

This is what I originally wanted as a 1 period ATR gives it in price points and ROC only does current close to previous close. With this you can select OHLC for the two prices you want to use as well as length.

I hope it helps!

Andre
rangeVolatility

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