OPEN-SOURCE SCRIPT

Accumulated Rate of Change

Updated
This is a volatility indicator, inspired by ROC(Rate of change).

Shows three values:
- ROC, based on previous bar's price
- Accumulated ROC, shows price change rate since previous nth* bar. Both positive and negative price changes increases the rate.
- Accumulated Positive ROC, considers positive change rate only
- Accumulated Negative ROC, considers negative change rate only

* based on given number of bars in settings
Release Notes
Added the option to highlight background when positive and negative lines cross
snapshot
Release Notes
Background color option improvements
Release Notes
Alerts added
Rate of Change (ROC)

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