Systemicbeta

Rate Of Change

systemic:core-rocIndicators

Inputs

NameTypeDescription
WindowWhole numberThe number of bars over which the price change is measured.
PriceNumber seriesThe price series used to calculate the Rate of Change.

Outputs

NameTypeDescription
ROCNumber seriesThe percentage price change over the window, one value per bar.

Cost

6
credits per run
1,000
bars

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 nn bars ago. It is one of the simplest momentum oscillators. It answers one question: "How fast is price moving?"

ROC=Pt−Pt−nPt−n×100ROC = \frac{P_t - P_{t-n}}{P_{t-n}} \times 100

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 ValueMeaning
Positive and risingAccelerating upward momentum
Positive and fallingUpward momentum slowing
Zero crossing upMomentum turning bullish
Zero crossing downMomentum turning bearish
Negative and fallingAccelerating downward momentum
Negative and risingDownward 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:

ConditionSignal
ROC at historical highsPotential overbought
ROC at historical lowsPotential oversold

3. Divergence Trading

PriceROCSignal
Higher highLower highBearish divergence
Lower lowHigher lowBullish divergence

Window Selection

WindowCharacteristicsBest For
5-10Very sensitive, many signalsDay trading, scalping
12-14Balanced (common choice)Swing trading
20-30Smooth, fewer false signalsPosition trading
50+Very smooth, major trends onlyLong-term analysis

ROC vs. Momentum Indicator

ROC and the Momentum indicator are closely related:

IndicatorFormulaScale
ROC(Pt−Pt−n)/Pt−n×100(P_t - P_{t-n}) / P_{t-n} \times 100Percentage
MomentumPt−Pt−nP_t - P_{t-n}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:

  1. Price above its 50-bar moving average (uptrend)
  2. 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:

KST=w1⋅SMA(ROC1)+w2⋅SMA(ROC2)+w3⋅SMA(ROC3)+w4⋅SMA(ROC4)KST = w_1 \cdot SMA(ROC_1) + w_2 \cdot SMA(ROC_2) + w_3 \cdot SMA(ROC_3) + w_4 \cdot SMA(ROC_4)

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 n=1n = 1, Monday is compared with Friday's close.

Edge Cases

SituationResult
First nn bars that have a priceEmpty (not enough earlier data)
Pt−n=0P_{t-n} = 0Empty (division by zero is undefined)
Window larger than the number of barsThe run fails
Negative pricesMathematically 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]
DimensionStocksCryptoExplanation
Popularity7.5/107.0/10Foundational momentum indicator; widely taught and referenced across all markets
Reliability6.5/105.5/10Simple and effective, but prone to whipsaws; slightly less reliable in crypto's volatility
Complexity2/102/10Extremely simple calculation — just percentage change between two points
Versatility9/108/10Works on any period, any asset; building block for more complex indicators like KST
Recent Interest5/105/10Classic 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.


Further Reading

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5