Rate Of Change
systemic:core-rocIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The number of bars over which the price change is measured. |
| Price | Number series | The price series used to calculate the Rate of Change. |
Outputs
| Name | Type | Description |
|---|---|---|
| ROC | Number series | The percentage price change over the window, one value per bar. |
Cost
0.206 + 0.00568·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Rate of Change indicator measures momentum as the percentage change between the current price and the price bars ago. It is one of the simplest momentum oscillators. It answers one question: "How fast is price moving?"
How ROC Works
flowchart LR
subgraph Input["Price Data"]
Pt["Current Price<br/>P(t)"]
Ptn["Price n bars ago<br/>P(t-n)"]
end
subgraph Calc["ROC Calculation"]
Diff["P(t) - P(t-n)"]
Div["Divide by P(t-n)"]
Mult["Multiply by 100"]
end
subgraph Output["Momentum"]
Pos["ROC > 0<br/>Bullish"]
Zero["ROC = 0<br/>Flat"]
Neg["ROC < 0<br/>Bearish"]
end
Pt & Ptn --> Diff --> Div --> Mult --> Pos & Zero & Neg
Interpretation
| ROC Value | Meaning |
|---|---|
| Positive and rising | Accelerating upward momentum |
| Positive and falling | Upward momentum slowing |
| Zero crossing up | Momentum turning bullish |
| Zero crossing down | Momentum turning bearish |
| Negative and falling | Accelerating downward momentum |
| Negative and rising | Downward momentum slowing |
Trading Strategies
1. Zero-Line Crossover
flowchart TD
ROC["ROC Value"] --> Cross{"Crossing zero?"}
Cross -->|"Up through 0"| Buy["Bullish Signal"]
Cross -->|"Down through 0"| Sell["Bearish Signal"]
Cross -->|"No"| Hold["Hold"]
2. Overbought/Oversold
ROC has no fixed upper limit, but extreme readings often come before reversals:
| Condition | Signal |
|---|---|
| ROC at historical highs | Potential overbought |
| ROC at historical lows | Potential oversold |
3. Divergence Trading
| Price | ROC | Signal |
|---|---|---|
| Higher high | Lower high | Bearish divergence |
| Lower low | Higher low | Bullish divergence |
Window Selection
| Window | Characteristics | Best For |
|---|---|---|
| 5-10 | Very sensitive, many signals | Day trading, scalping |
| 12-14 | Balanced (common choice) | Swing trading |
| 20-30 | Smooth, fewer false signals | Position trading |
| 50+ | Very smooth, major trends only | Long-term analysis |
ROC vs. Momentum Indicator
ROC and the Momentum indicator are closely related:
| Indicator | Formula | Scale |
|---|---|---|
| ROC | Percentage | |
| Momentum | Absolute points |
Advantage of ROC: The percentage scale allows comparison across assets with different price levels.
Building Systems with ROC
Momentum Confirmation System
flowchart TD
subgraph Data["Input"]
Price["Close Prices"]
end
subgraph Indicators["Indicators"]
SMA["SMA(50)"]
ROC["ROC(12)"]
end
subgraph Conditions["Conditions"]
Trend["Price > SMA"]
Mom["ROC > 0"]
AND["AND"]
end
subgraph Signal["Output"]
Buy["Buy Signal"]
end
Price --> SMA & ROC
SMA --> Trend
ROC --> Mom
Trend & Mom --> AND --> Buy
This system requires both:
- Price above its 50-bar moving average (uptrend)
- ROC positive (positive momentum)
The KST Connection
ROC is the building block of the Know Sure Thing (KST) indicator, which smooths and weights ROC values of several windows:
Using several windows filters noise and captures momentum across different cycles.
Missing Data
A gap is a bar with no price, for example a weekend on a daily stock series. ROC is empty on that bar: a gap is never treated as "unchanged" and no earlier value is carried forward. The window counts only bars that have a price, so gaps are skipped. With , Monday is compared with Friday's close.
Edge Cases
| Situation | Result |
|---|---|
| First bars that have a price | Empty (not enough earlier data) |
| Empty (division by zero is undefined) | |
| Window larger than the number of bars | The run fails |
| Negative prices | Mathematically valid but rare in practice |
Advantages
- Simple — Easy to understand and calculate
- Normalized — Percentage allows cross-asset comparison
- Leading indicator — Can signal momentum shifts before price reversals
- Versatile — Works on any period and asset class
Disadvantages
- No bounds — Unlike RSI, no fixed overbought/oversold levels
- Whipsaws — Frequent zero-line crosses in ranging markets
- Two points only — Compares two prices and ignores the bars in between
Indicator Assessment
%%{init: {"quadrantChart": {"titleFontSize": 14}, "themeVariables": {"quadrant1Fill": "#e8f5e9", "quadrant2Fill": "#fff3e0", "quadrant3Fill": "#ffebee", "quadrant4Fill": "#e3f2fd"}}}%%
quadrantChart
title Rate of Change Assessment
x-axis Low Popularity --> High Popularity
y-axis Low Reliability --> High Reliability
quadrant-1 High potential
quadrant-2 Established
quadrant-3 Niche
quadrant-4 Widely used
Stocks: [0.75, 0.65]
Crypto: [0.70, 0.55]
| Dimension | Stocks | Crypto | Explanation |
|---|---|---|---|
| Popularity | 7.5/10 | 7.0/10 | Foundational momentum indicator; widely taught and referenced across all markets |
| Reliability | 6.5/10 | 5.5/10 | Simple and effective, but prone to whipsaws; slightly less reliable in crypto's volatility |
| Complexity | 2/10 | 2/10 | Extremely simple calculation — just percentage change between two points |
| Versatility | 9/10 | 8/10 | Works on any period, any asset; building block for more complex indicators like KST |
| Recent Interest | 5/10 | 5/10 | Classic indicator with stable, consistent usage; no recent resurgence but never out of favor |
Key Insight: ROC's simplicity is both its strength and its limit. It is the plainest measure of momentum: no smoothing, no weighting, just the percentage change. This makes it a good building block for larger systems (like KST, which uses four weighted ROC windows). For direct use, pair it with a trend filter to reduce false signals in ranging markets.