INDICATORS · RETURN Z-SCORE

Return Z-Score in Crypto: Why the Value Changes Before Candle Close

A return z-score compares the current bar's return with the distribution of recent returns. The live return is incomplete until the close.

Short answer

Return z-score = (current return − mean return) ÷ standard deviation of returns over N. Unlike a price z-score, it measures how unusual this bar's move is. On the live bar, the return grows or shrinks with price, so an 'extreme bar' flag (e.g. |z| > 3) can appear and disappear. Also, if the live return is included in the deviation, it dampens itself; most tools use the previous N returns for the deviation. Check which, and use closed bars.

Which part of Return Z-Score uses the live bar

ComponentUses current bar?Effect intrabar
Live returnYesMoves with price
Mean / std of returnsDependsPast N or including live
|z| thresholdYesFlags flicker

Excluding the live bar from the deviation keeps the yardstick fixed during the bar, which makes the live z easier to interpret.

See Return Z-Score in Crypto on live data in the free ChartsPod terminal.

Open the ChartsPod terminal

How much it moves inside one bar

Return Z-Score during one bar (illustrative)Return Z-Score during one bar (illustrative): OPEN: z 0.3; MID: −3.4: extreme flag; LATE: −2.2; CLOSE: −2.6.OPENz 0.3MID−3.4: extreme flagLATE−2.2CLOSE−2.6
Only Return Z-Score's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of Return Z-Score vs its closed valueIllustrative intrabar range of Return Z-Score vs its closed value: Intrabar |z| 3 ; Closed |z| 3 .ILLUSTRATIVE INTRABAR RANGE OF RETURN Z-SCORE VS ITS CLOSED VALUEIntrabar |z|3Closed |z|3
How far Return Z-Score travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

Return Z-Score signal hygieneReturn Z-Score signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.RETURN Z-SCORE 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.

Price-level z-score: Price Z-Score in Crypto: Why the Value Changes Before Candle Close.

Test Return Z-Score in Crypto on a perpetual chart; no account is needed to chart.

Launch ChartsPod

Questions readers ask

What is a return z-score?

How unusual a bar's return is versus recent returns.

Should the live bar be in the deviation?

Usually not; check your tool.

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.