ROC (Rate of Change)
Indicator Description
ROC (Rate of Change) is a momentum indicator that measures price momentum by calculating the percentage change between the current price and the price n periods ago.
Function Information
- Function Name:
ROC - Input Parameters:
Close: Closing price
- Parameter Settings:
timeperiod: Calculation period, default 10
- Output: ROC value
Calculation Principle
ROC is calculated using the following formula:
ROC = ((Current Close - Close[n]) / Close[n]) * 100
Where:
- Current Close is the current closing price
- Close[n] is the closing price n periods ago
Usage Scenarios
- Momentum Analysis
- Trend Confirmation
- Trading Signal Generation
- Market State Analysis
Usage Recommendations
- ROC > 0 indicates upward momentum
- ROC < 0 indicates downward momentum
- Watch for zero-line crossovers
- Pay attention to market environment changes