OPEN-SOURCE SCRIPT

GMS: % True Range

1 150
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

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.