INDICATORS · ROC

ROC in Crypto: Why the Value Changes Before Candle Close

Rate of Change compares today's price with the price N bars ago. Only one side of that comparison is live, so ROC moves exactly with price during the bar.

Short answer

ROC = (close − close N bars ago) ÷ close N bars ago × 100. The past close is fixed; the current close is the live price until the bar ends. ROC therefore moves one-for-one (in percentage terms) with price inside the bar. Zero-line crosses can vanish if price returns to near the reference close. Use closed values, and remember ROC also changes on the next bar when the reference close rolls forward, which can create crosses without any new price movement.

Which part of ROC uses the live bar

ComponentUses current bar?Effect intrabar
Close N bars agoNoFixed during bar
Current close (live)YesDirect
ROCYesMoves 1:1 with % price change
Reference roll-forwardNext barCan change ROC without price change

The roll-forward effect is easy to miss: when the bar N periods back was unusually high or low, ROC can jump at the next bar's open even if price is flat.

Put ROC in Crypto next to price, flow and positioning in one workspace.

Open a ChartsPod workspace

How much it moves inside one bar

ROC during one bar (illustrative)ROC during one bar (illustrative): OPEN: ROC +0.4%; MID: +1.8%; LATE: −0.2% (crossed zero); CLOSE: +0.3%.OPENROC +0.4%MID+1.8%LATE−0.2% (crossed zero)CLOSE+0.3%
Only ROC's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of ROC vs its closed valueIllustrative intrabar range of ROC vs its closed value: ROC intrabar range 2 ; Jump from reference roll-forward 1 .ILLUSTRATIVE INTRABAR RANGE OF ROC VS ITS CLOSED VALUEROC intrabar range2Jump from reference roll-forward1
How far ROC travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

ROC signal hygieneROC signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.ROC SIGNAL HYGIENESignals on closed barsBar-close alertsBacktest uses the same ruleLive value labelled provisionalSettings identical across chart and alerts
Closed values are what history shows. Original ChartsPod editorial graphic.

Related: MACD in Crypto: Why the Value Changes Before Candle Close for momentum oscillators with smoothing.

Review ROC in Crypto with bar replay before using it live.

Open ChartsPod replay

Questions readers ask

Why does ROC change at a new bar with no price move?

The reference close N bars ago changed.

Is ROC smoothed?

No.

Use closed bars?

Yes for signals.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.