Technical Indicators · Illustrated reference
ROC and Momentum: the endpoint and the reference that leaves
How much has price changed relative to a selected earlier observation?
Animated explanation · synthetic observations
ROC and Momentum: the endpoint and the reference that leaves
Multiplying every price by ten leaves percentage ROC unchanged but multiplies raw momentum by ten. Equal endpoints still say nothing about the path between them.
Original synthetic roc explanation with calculated outputs, explicit initialization and a comparison view. The complete reference is shown when motion is unavailable. Playback is optional.
In this reference
- How much has price changed relative to a selected earlier observation?
- Inputs and reproducible calculation
- A calculation you can reproduce
- Read the behavior with price
- Initialization and implementation differences
- Compare the calculation, not just the shape
- What the output cannot establish
- A practical reading sequence
- Methodology and source notes
How much has price changed relative to a selected earlier observation?
Rate of Change compares the current price with a price n intervals earlier. A raw momentum difference subtracts that earlier price; percentage ROC divides by it. Both summarize two endpoints. They do not preserve the path between them, and their movement depends on changes at both ends of the comparison window.
The animation begins with the analytical purpose, then relates the calculated output to the price observations that produced it. Every line is recomputed from the same local synthetic inputs. No historical market dataset or success-rate claim is implied.
Inputs and reproducible calculation
Momentumₙ(t) = C(t)−C(t−n) ROCₙ(t) = 100 × [C(t)/C(t−n)−1] Momentumₙ(t)−Momentumₙ(t−1) = [C(t)−C(t−1)] − [C(t−n)−C(t−n−1)]
Specify the observation interval, input field, price adjustment, history length and missing-value policy. A period counts observations, not calendar days. A partial candle can change its close, high, low and volume before completion; the corresponding indicator can change too. This reference treats its synthetic observations as completed.
A calculation you can reproduce
A move from 100 to 110 gives raw momentum 10 and ROC 10%. A move from 200 to 210 has the same raw difference 10 but ROC 5%. Multiplying every price by ten multiplies raw momentum by ten while leaving percentage ROC unchanged. An unchanged current price of 120 compared first with 100 and then with 110 changes ROC from 20% to 9.0909% solely because the earlier reference changes.
Keep full precision through intermediate updates and round only for presentation. Repeatedly rounding the recursive state produces a different series. A numerical difference between implementations should first be traced to input history, seed, smoothing and degenerate-case rules before being called a market signal.
Read the behavior with price
The example introduces a discrete rise at observation 20, followed by a slower advance and then a flat endpoint. When the earlier jump becomes the denominator of the 12-interval comparison, ROC drops even though the latest price has not made a matching sudden decline. The scaled-price view demonstrates the invariance of percentage ROC.
A positive ROC means the current endpoint exceeds the selected earlier endpoint. It does not require every intervening observation to rise. Two paths can have equal ROC and very different drawdown or realized volatility. Similarly, positive but falling ROC can coexist with an increasing price if the earlier reference rises more rapidly.
Initialization and implementation differences
The first ROC value requires n+1 observations, not n. This implementation returns no value when the denominator is zero and does not bridge missing warm-up outputs. The chart uses percentage ROC with baseline zero; some software uses a ratio multiplied by 100 with baseline 100, or calls a raw difference “momentum.” Name the exact formula before comparing readings.
Indicator values may differ across platforms because of calculation methods, initialization, data history, session settings and missing-data handling. The synthetic examples in this guide illustrate the stated calculation method and may differ from live indicator readings.
Compare the calculation, not just the shape
Input event
Later behavior
Controlled comparison
The comparison view changes the stated input or parameter while retaining the rest of the experiment. It is an optional demonstration, not an exercise. The captions explain the result directly; no answer or prediction is required.
What the output cannot establish
The lookback controls which reference leaves the window. A short lookback is sensitive to recent changes; a longer one can retain an old shock and then lose it abruptly. ROC is not a benchmark-relative performance ratio and is not RSI. Repeatedly trying many lookbacks and selecting the best historical signal can overfit even though every individual calculation is correct.
A threshold crossing is an observation about the formula. Turning it into a decision requires an entry convention, an exit convention, execution assumptions and a loss budget. Without those, an attractive indicator picture is not an investment strategy. Repeated signals derived from the same prices are also not automatically independent confirmations.
Parameter choices should follow the question being asked, not a search for the smoothest historical chart. A shorter memory can reveal change sooner while reacting to more transient variation. A longer memory can reduce some fluctuations while retaining obsolete conditions. Neither choice removes uncertainty, transaction costs or gap risk.
A practical reading sequence
First identify the price behavior and interval. Next inspect whether the indicator has enough completed observations to be initialized. Then describe the output in its actual units and compare it with the relevant input event. Finally consider a competing explanation, such as a window exit, an unusual volume weight or a change in the reference range. This sequence prevents a familiar line shape from replacing the calculation.
Preserve failed or ambiguous examples when evaluating a rule. Do not move an indicator backward in time to make it appear more responsive, exclude cases with unavailable outputs without describing the exclusion, or use a completed higher-timeframe value before that candle actually ended.
Related: smoothing and initialization, market context, completed and incomplete intervals, risk and adverse execution.
Methodology and source notes
The endpoint and finite-difference identities are independently derived WOI mathematics. No proprietary formula or empirical performance claim is implied. Implementation naming can be compared with the TA-Lib ROC, ROCP and MOM function list.
Source references checked 3 December 2026. Formulas are explained independently; no external illustration is reproduced. The original synthetic scenarios explain mechanisms and limitations, not validated investment advantages.