P
PipsGrowth

Key Takeaways

Difficulty:Beginner
Reliability:Moderate
Category:momentum
Timeframes:1H, 4H, Daily

Rate of Change (ROC)

momentumšŸ“Š 1H, 4H, Daily

Measures the percentage change in price over a specified period.

Formula

Code
ROC = ((Close - Close(n)) / Close(n)) Ɨ 100

Detailed Explanation

Rate of Change measures how fast price is changing as a percentage.

Key Concepts:
- Positive ROC: Price higher than n periods ago
- Negative ROC: Price lower than n periods ago
- Magnitude shows momentum strength

Trading Setup Example

Entry, stop loss, and take profit levels.

šŸ“ˆ Buy Setup
Rate of Change (ROC)703050Oversold!EntryTake ProfitStop LossCandlesIndicatorOversoldBUY
šŸ“‰ Sell Setup
Rate of Change (ROC)703050Overbought!EntryTake ProfitStop LossCandlesIndicatorOverboughtSELL

Always wait for signal confirmation before entering a trade.

Where This Indicator Works Best

Trend context and market position.

šŸ“ˆ Bullish Context
OBOSOversold!Ranging MarketBest Fit āœ“Buy Signal
šŸ“‰ Bearish Context
OBOSOverbought!Ranging MarketBest Fit āœ“Sell Signal

Detects overbought/oversold in trending and ranging markets.

Live Chart — Rate of Change (ROC)

See Rate of Change (ROC) in action on a live chart. Try changing the settings and timeframe.

Parameters

Period
Default: 12
ROC lookback period

šŸ“ˆ Bullish Signals

ROC crosses above zero, rising from oversold

šŸ“‰ Bearish Signals

ROC crosses below zero, falling from overbought

Python Implementation

ROC calculation

Python
import pandas_ta as ta
df['ROC'] = ta.roc(df['close'], length=12)

TradingView Pine Script

JavaScript
//@version=5
indicator("ROC")
roc = ta.roc(close, 12)
plot(roc, "ROC", color=color.blue)
hline(0, "Zero")
šŸ“Š Use TradingView for Advanced Charting
Professional analysis tools with 100+ technical indicators
Get TradingView Pro

MT5 MQL5 Code

C++
int roc_handle = iMomentum(_Symbol, _Period, 12, PRICE_CLOSE);
// Note: MT5 Momentum is similar to ROC

Common Mistakes

āœ—Ignoring divergences
āœ—Using without trend context

Confirmation Signals

Price action
Volume
Moving averages

Best For

Momentum measurementDivergence tradingOverbought/oversold

šŸ’” Pro Tips

  • •Unbounded oscillator - no fixed limits
  • •Good for comparing momentum across instruments
  • •Divergences are reliable signals
Last updated: February 8, 2026

Educational Disclaimer

This content is for educational purposes only and does not constitute financial or investment advice. Trading involves significant risk and you may lose your capital. Always consult a licensed financial advisor before making investment decisions.

Frequently Asked Questions

Rate of Change (ROC) - Complete Guide with Python & TradingView Code