Rolling Z-Score
Expresses distance from a rolling mean in units of rolling standard deviation.
Start with the input, not the story.
Standardised deviation from a local average.
The local panel exactly calculates a 20-period rolling z-score from the displayed close history after hidden warm-up. The price overlay uses the same rolling mean and two-deviation envelope. A reading near +2 or −2 can keep stretching instead of reverting.
Check whether the series is stable enough for mean reversion and inspect the real tails. Standardising the values does not make them normally distributed.How traders commonly use Rolling Z-Score
A rolling z-score can standardise deviations for mean-reversion research after a stable range or stationary transformation is defined.
Express distance from a rolling mean in units of rolling standard deviation.
Keep this job separate from entry timing, stop placement and position size.
A useful counterexample
A value of plus or minus two does not guarantee reversal; a trending series can remain extreme and empirical tails may be much heavier than normal.
Range test for context, z-score for distance, risk tool for exposure
Each part has a different job. If two tools answer the same question, remove one and compare the result.
Establishes whether a mean-reversion premise is plausible.
Measures completed-bar distance from the local mean.
Keeps risk bounded when deviations continue expanding.
Follow the same order every time
- Choose the input series, rolling mean window and standard-deviation convention.
- Define the range or stationarity check before reading the z-score.
- Wait for the candle to close and record threshold entry and threshold exit separately.
- Define invalidation in price terms rather than assuming reversion from the score.
- Inspect tail frequency and compare the z-score rule with a simple distance-from-mean baseline.
The indicator is one part of the method
These strategy pages show the market conditions, entry, stop and exit around the indicator.
Range mean reversion
Tests whether qualified boundary excursions revert toward a range midpoint.
- ENTRY
- Enter at the next H1 open after the first qualifying close back inside the frozen range.
- STOP
- Place the stop 0.20 × ATR(14) beyond the excursion extreme and size to 0.50% equity risk, rounded down to 0.01 lot.
- EXIT
- Exit at the frozen range midpoint. If neither stop nor midpoint trades, exit after eight completed H1 bars.
Volatility-targeted momentum
Scales a simple momentum signal so higher-volatility pairs do not dominate risk.
- ENTRY
- At Monday 00:00 UTC, rebalance selected pairs to inverse-60-day-volatility weights, normalised to 10% ex-ante portfolio volatility and then reduced proportionally to satisfy every cap.
- STOP
- No chart stop. Cut a pair to zero at the next daily open if its one-day loss exceeds 3 × its 60-day daily volatility; suspend all new entries for one week if estimated portfolio volatility exceeds 15%.
- EXIT
- At each weekly rebalance, exit a pair that leaves its top/bottom-two rank, loses the 2% absolute-score threshold or breaches a risk rule; otherwise resize to the new capped target weight.
Set up Rolling Z-Score on your platform
Match the lesson's period, price input, smoothing and candle timing. Similar names can still produce different values across feeds and platforms.
MT4
Custom code neededA faithful on-chart version needs an MQL4 implementation. Check the source note below when WickAtlas provides one.
MT4 technical analysisWickAtlas MT4 setup guideMT5
Custom code neededA faithful on-chart version needs an MQL5 implementation. Check the download note below before assuming WickAtlas provides one.
MT4 and MT5 comparisonWickAtlas MT5 setup guideTradingView
Custom code neededA faithful on-chart version needs a Pine Script implementation. Check the source note below when WickAtlas provides one, or review third-party code before use.
TradingView indicatorsWickAtlas TradingView guide“Built in” means the standard platform library contains the underlying indicator. It does not mean its defaults or calculation match every third-party version. Compare the platforms.
Plain-language formula
The same indicator can look slightly different across platforms because the price input, smoothing and rounding may change. Note your settings before comparing two charts.
Where it may help
Comparing deviations across periods and systematic mean-reversion research.
Where it struggles
Trending, non-stationary series and fat-tailed distributions.
What to pair it with
Pair it with something that answers a different question, such as volatility or market direction. Try the indicator on its own before adding more tools.
The shortcut to avoid
Assuming a z-score of two implies a guaranteed or normally distributed reversal.
Try this on a chart
Test stationarity assumptions and report tail behaviour before setting thresholds.