The Rate of Change (ROC) indicator compares the current price with the previous price from a selected number of periods ago. The current price is divided by the previous price and expressed as a percentage. This indicator is also commonly known as a momentum indicator.
ROC = (Current Price / Price of n bars ago)-1.0) * 100
Where: n = Time period