INDICATORS · ROLLING CORRELATION

Rolling Correlation in Crypto: Why the Value Changes Before Candle Close

Rolling correlation measures how closely two assets' returns move together over N bars. On the live bar, both assets' returns are unfinished.

Short answer

Rolling correlation uses the last N pairs of returns. On the live bar, both assets' returns are provisional; if they move differently mid-bar (one reacts first), the live correlation dips and may recover by the close. Different data timestamps between the two series (e.g. venues updating at different moments) add noise. Align bars by the same close times, use closed bars, and choose N long enough to be stable.

Which part of Rolling Correlation uses the live bar

ComponentUses current bar?Effect intrabar
Asset A live returnYesProvisional
Asset B live returnYesProvisional
N-pair windowYes (live pair)1/N influence
Timestamp alignmentDataNoise if misaligned

Lead-lag inside a bar (one asset moving first) shows up as a temporary correlation drop.

Check Rolling Correlation in Crypto against a live market before relying on it.

Try it in ChartsPod

How much it moves inside one bar

Rolling Correlation during one bar (illustrative)Rolling Correlation during one bar (illustrative): OPEN: ρ 0.82; MID: BTC drops first: 0.74; LATE: Alt follows: 0.80; CLOSE: 0.81.OPENρ 0.82MIDBTC drops first: 0.74LATEAlt follows: 0.80CLOSE0.81
Only Rolling Correlation's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of Rolling Correlation vs its closed valueIllustrative intrabar range of Rolling Correlation vs its closed value: Intrabar ρ low 1 ; Closed ρ 1 .ILLUSTRATIVE INTRABAR RANGE OF ROLLING CORRELATION VS ITS CLOSED VALUEIntrabar ρ low1Closed ρ1
How far Rolling Correlation travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

Rolling Correlation signal hygieneRolling Correlation signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.ROLLING CORRELATION 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.

Correlated exposure sizing: Correlated Altcoin Exposure: A Worked Crypto Example With Fees Included.

Compare Rolling Correlation in Crypto across Binance, Bybit, OKX and Hyperliquid markets.

Open markets in ChartsPod

Questions readers ask

Why does correlation dip intrabar?

One asset may move before the other.

What N should I use?

Long enough to be stable.

Closed bars?

Yes, aligned by close time.

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.