Price Z-Score in Crypto: Why the Value Changes Before Candle Close
A price z-score measures how many standard deviations the close is from its rolling mean. The live price enters the numerator, the mean and the deviation.
Short answer
Price z-score = (close − SMA(N)) ÷ standard deviation of closes over N. On the live bar, the price moves the numerator directly, shifts the mean by 1/N and raises the deviation when far from the mean. The deviation's rise partly offsets extreme moves, so z grows less than proportionally on big intrabar moves — but threshold crosses (e.g. ±2) still happen and reverse within bars. Use closed values.
Which part of Price Z-Score uses the live bar
| Component | Uses current bar? | Effect intrabar |
|---|---|---|
| Close − mean | Yes | Direct |
| Mean | Yes | 1/N shift |
| Std dev | Yes | Rises on outliers |
| z | Yes | Self-damping |
Because a large move raises the standard deviation too, z rarely reaches extreme values as quickly as the price move suggests.
Put Price Z-Score in Crypto next to price, flow and positioning in one workspace.
Open a ChartsPod workspaceHow much it moves inside one bar
Rules
Mean reversion with z-scores: Z-Score Mean Reversion Backtest in Crypto: Fees, Slippage and Break-Even Costs; return-based version: Return Z-Score in Crypto: Why the Value Changes Before Candle Close.
Review Price Z-Score in Crypto with bar replay before using it live.
Open ChartsPod replayQuestions readers ask
What is a price z-score?
Distance from the rolling mean in standard deviations.
Why is it self-damping?
Big moves raise the deviation.
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.
- TradingView Pine Script: Repainting — live vs historical calculation.
- 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.