INDICATORS · STANDARD DEVIATION

Standard Deviation in Crypto: Why the Value Changes Before Candle Close

Standard deviation measures dispersion of recent closes around their mean. On the live bar, a single move far from the mean has outsized effect because deviations are squared.

Short answer

Standard deviation over N closes = √(Σ(close − mean)² ÷ N). The live price is one of the N values and also shifts the mean. Because deviations are squared, a live price far from the mean raises the value much more than one ordinary bar; when price returns, it falls back. Bollinger Bands, z-scores and volatility filters inherit this. In an example with 19 returns alternating ±1%, adding a 4% live return lifts the deviation from ≈ 0.95% to ≈ 1.29%.

Which part of Standard Deviation uses the live bar

ComponentUses current bar?Effect intrabar
N−1 closed valuesNoFixed
Live valueYesSquared deviation
MeanYesShifts by 1/N of move

Indicators that divide by standard deviation (z-score, %B) become less sensitive as the deviation rises during the move — a self-damping effect.

Test Standard Deviation in Crypto on a perpetual chart; no account is needed to chart.

Launch ChartsPod

How much it moves inside one bar

Standard Deviation during one bar (illustrative)Standard Deviation during one bar (illustrative): OPEN: σ 0.95%; MID: +4% move: σ 1.29%; LATE: Fade; CLOSE: σ 1.05%.OPENσ 0.95%MID+4% move: σ 1.29%LATEFadeCLOSEσ 1.05%
Only Standard Deviation's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of Standard Deviation vs its closed valueIllustrative intrabar range of Standard Deviation vs its closed value: σ with live outlier (%) 1 ; σ without (%) 1 .ILLUSTRATIVE INTRABAR RANGE OF STANDARD DEVIATION VS ITS CLOSED VALUEσ with live outlier (%)1σ without (%)1
How far Standard Deviation travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

Standard Deviation signal hygieneStandard Deviation signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.STANDARD DEVIATION 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.

Used in Bollinger Bands in Crypto: Why the Value Changes Before Candle Close and Z-Score Mean Reversion Backtest in Crypto: Fees, Slippage and Break-Even Costs.

See Standard Deviation in Crypto on live data in the free ChartsPod terminal.

Open the ChartsPod terminal

Questions readers ask

Why does standard deviation jump intrabar?

The live value's deviation is squared.

Which indicators inherit this?

Bollinger Bands, z-scores, volatility filters.

Closed bars?

Yes.

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.