In this article
After this article, you can
- Distinguish two series’ correlation from the behavior of their difference.
- Record the coefficient defining the series under study.
Terms at hand: Backtesting · Trading Plan · CFD (contract for difference) · Demo account · ESMA regulation · Stop loss
Mean reversion proposes a reduction in distance from a specified reference. That reference and the object returning to it must be named and tested. A low RSI, band touch or low ADX does not identify a compulsory buy. A moving average can instead catch an unchanged price, so “reached the mean” need not mean a profitable trade. The worked example below separates those outcomes.
Two rising curves do not define the reversion object
Fictional index series share one arbitrary unit: P = 100, 102, 104, 106; Q = 100, 104, 108, 112.
Scroll sideways to see the full diagram
Four complete simultaneous readings of both indices. “Difference” means exactly P − Q, without a fitted coefficient. This is not a stationarity test. The document NIST — Correlation confirms that Pearson correlation measures linear association and equals +1 for a perfect positive linear relationship.
Q = 2P − 100 gives Pearson correlation +1, but P − Q is 0, −2, −4, −6. Even perfect joint growth does not force this difference to revert. Meanwhile, 2P − Q is constant at 100 here: a different coefficient defines a different object. Record the series, units and coefficient before proposing reversion. Correlation does not select those elements or prove stability beyond this sample.
Specify what is supposed to revert
Mean reversion is a hypothesis about a specified series returning toward a reference, not a law that every price must obey. Define the series, units, window and any hedge coefficient before testing it. A moving average can move with price, and high correlation does not prove that a chosen difference will revert, as the diagram demonstrates.
Distinguish the price level, deviation from a moving reference and a model spread between instruments, such as P−βQ. This model spread is not the broker’s Bid–Ask spread. Correlation alone does not establish its stability. Trend-following systems test continuation rules instead; neither style’s name establishes future direction.
Two standard deviations can define a descriptive price envelope. It does not assign a return probability to a moving twenty-bar band or prove that price will revert. The chosen reference, window and entry rule need their own validation.
Describe distance and its calculation convention
Stationarity concerns properties of a specified process, including mean, variance and autocorrelation structure. Stationary changes do not by themselves make the level stationary. Cointegration is another hypothesis: the augmented Engle–Granger implementation in statsmodels tests a no-cointegration null under I(1) input assumptions. A fitted coefficient or test result from one sample does not establish future stability or net trading returns; do not estimate on later data and use it as if known earlier.
Traditional Bollinger Bands use a simple average with a standard-deviation-based width; 20 periods and 2 deviations are defaults, not universal optimal settings. A tag gives relative location, not an automatic reversal order. RSI is price-derived too: conventional 30/70 levels do not supply a win probability. Our distance statistic is z=(price−mean)/standard deviation. State the window, current-bar inclusion and divisor; a −2 reading describes distance rather than a rebound deadline.
ADX is a price-derived regime filter one may test. A low value does not prove a future range or grant a trade; a high value is not a universal prohibition. Define its calculation and threshold, then compare otherwise identical rules with and without it on a later evaluation period. Several price indicators are not automatically independent evidence.
Why the strategy catches a falling knife in a trend
A price can continue along an outer band; the creator explicitly distinguishes tags from signals. This possibility undermines an unconditional return claim. Adding positions after a loss changes exposure, not the mathematical likelihood of reversion. Whether a level, residual or updated average has useful reversion properties remains a separate empirical question.
Even with exactly the same prior window, changing ddof can change the signal. For the four prices above, standard deviation is √(8/4)≈1.4142 pips at ddof 0, but √(8/3)≈1.6330 at ddof 1. The current −4-pip distance gives z≈−2.8284 or −2.4495 respectively. A fictional z≤−2.5 test passes only with ddof 0. This threshold is selected to show the convention difference, not claimed as a better trading parameter.
Record what happens at zero standard deviation as well as at ordinary values. If all window prices coincide, z would require 0/0 and is undefined; do not silently report zero or an entry. A method that handles this boundary differently is a different specification, even without a price move.
Bollinger’s rules reject automatic statistical assumptions from the bands. A two-deviation envelope does not establish a 95% chance of return, and adding RSI plus a rejection candle does not turn the band tag into proof of a profitable trade.
What entry and exit discipline looks like
Write down a complete test rule: measured series, source prices, signal window, entry time, execution, exit and cost assumptions. A support or resistance filter can be compared under the same protocol, but it is not required by mean reversion’s definition. Preserve all eligible signals, including those that never reach the reference.
Choose explicitly whether the target is frozen at the signal’s reference or updated with later data. Also define loss exits, holding-time limit and cancellation conditions. A 1.5 × ATR distance is one optional parameter, not a usual mandatory stop. Ordinary stop execution may be worse than the chosen trigger; calculate risk and costs from the actual price model.
A missed time limit means the stated objective was not met within that limit; it does not prove a new trend has begun. Evaluate the amount and frequency of net wins and losses together. Neither win rate alone nor a chosen manual-exit deadline establishes survival or positive expectancy.
A hypothetical example, step by step
Continue the fictional Bid sequence with three more 1.0996 closes. Four-close means including the current bar at t0,t1,t2,t3 are 1.09990,1.09975,1.09970,1.09960; price-minus-mean is −3,−1.5,−1,0 pips. The moving mean reaches the unchanged price. The frozen old 1.1000 target is never reached in this sequence. At t3 all four prices coincide and z is undefined.
Assume a hypothetical 10,000-EUR buy at the first quote after t0, Ask 1.0997, and a sale after the t3 signal, Bid 1.0996. With USD 0.40 total commission, a USD account and no financing or other fees, net P&L=(1.0996−1.0997)×10,000−0.40=−USD 1.40. Spread is already in these fills and is not deducted twice. Reaching the updated average thus coincides with a net loss. A separate hypothetical fill at Bid 1.1000 would give +USD 2.60, but that price is absent from the unchanged-price sequence.
Who this strategy fits, and who it does not
Mean-reversion rules require testing with specified entries, exits and costs. ESMA's 2018 CFD intervention announcement cited historical loss-account ranges across jurisdictions; they are not a current loss percentage for a particular style. Risk management and discipline cannot guarantee profitability.
What to do tomorrow
- Define the reversion object and units: price, deviation from a reference or a weighted multi-series spread. Correlation alone does not choose the coefficient or establish stability.
- Record window length, source price side, ddof, current-bar inclusion and zero-deviation handling. Check the implementation on identical data before evaluating trade outcomes.
- State whether the target is frozen or updated, and define entry, loss/time exits, volume and transaction costs before the test. A chart target is not an actual fill.
- Separate parameter selection from later evaluation and record every eligible signal. Demo checks implementation; several dozen cases or a 1% budget do not establish profitability or readiness for live money.
- Specify what a missed objective or holding-time limit does to the position. Treat any averaging rule as a separate exposure change and test its full net-result distribution.
Check your understanding
One short exercise
About 2 min · you can try again
In the model Q = 2P − 100, what follows from correlation +1?
- P − Q must be constant.
- The next P − Q reading must return to zero.
- The series are linearly related while P − Q drifts from zero in this sample.
Check the answer and explanation
The series are linearly related while P − Q drifts from zero in this sample.
P − Q equals 100 − P, so it decreases as P rises. This is consistent with correlation +1.
Frequently asked
What is mean reversion and why does it work at all?
Mean reversion is a testable hypothesis about a chosen series and reference. Price, its deviation from an updated average and a weighted two-series spread are different objects. Their properties and net trade outcomes must be evaluated separately. Correlation or a descriptive z-score does not prove future convergence. No universal fear/greed mechanism or 95% return probability is assigned here.
Which tools do you use to trade mean reversion?
Define the reference and distance first. Our four-close example specifies an arithmetic mean and denominator N−ddof. With the same price 1.0996, excluding the current close gives z≈−2.8284; including it gives≈−1.3416. Bollinger Bands, RSI and ADX can supply additional declared conditions, but related price transformations do not constitute independent evidence or guaranteed improvement.
Why does mean reversion fail so badly in a trend?
A return is not assured, including during a directional move; the reference can itself change. In our example the Bid remains 1.0996 while its four-close average moves down to it. “Reached the mean” therefore does not imply a favourable price move or profit. A low ADX cannot guarantee a future range, and a failed time limit does not establish that a trend has begun.
What does entry and exit discipline look like in this strategy?
Specify the target as frozen or updated, signal availability, entry fill, loss/time exits, size, costs and invalid-data rules. Our hypothetical buy Ask 1.0997 and sell Bid 1.0996 for 10,000 EUR loses USD 1.40 after USD 0.40 commission even though the moving mean is reached. An alternative Bid 1.1000 fill would yield USD 2.60 but did not occur in that stipulated sequence. Ordinary stops can slip; no fixed ATR multiple guarantees a small loss.
Sources & bibliography
-
John Bollinger Bollinger Bands — official methodology · Bollinger explains band construction around a moving average and the use of standard-deviation-based widths. www.bollingerbands.com ↗
-
Corporate Finance Institute Bollinger Bands® — Definition, Limits, Trading · Explains Bollinger Bands, standard-deviation calculations and the indicator's reactive nature. corporatefinanceinstitute.com ↗
-
Corporate Finance Institute Relative Strength Index (RSI) · Explains conventional RSI overbought/oversold zones and the interpretation of momentum across market conditions. corporatefinanceinstitute.com ↗
-
ESMA ESMA agrees to prohibit binary options and restrict CFDs · ESMA's announcement describes EU retail CFD restrictions and historical evidence about losses. www.esma.europa.eu ↗
-
NumPy developers NumPy Reference — numpy.std · Defines denominator N−ddof and 0/1 conventions used in our hand-reproduced hypothetical window examples; no trading-success probability is supplied. numpy.org ↗
-
John Bollinger Bollinger Bands Rules · Distinguishes tags from trading signals, related indicators and statistical assumptions. No general return probability or compulsory confirmation sequence is inferred. www.bollingerbands.com ↗
-
OANDA Corporation — US Calculating profit and loss on your trades · Uses opposite execution prices and quote-currency results in illustrative USD-account examples. Our EUR/USD fills and USD 0.40 commission are hypothetical, not a quoted tariff. www.oanda.com ↗
