Skip to content
← Back to all strategies

Strategies / Mean Reversion

Mean Reversion

3 min read · Strategy guide

In everyday words

A stretched elastic band tends to snap back. The catch is that sometimes it has not stretched at all, and has moved somewhere new.

An example in pounds

A share has cost about £100 for the last two weeks. Today it drops to £95, and the rule buys one. If it climbs back to £100, the rule has made £5. If it keeps sliding to £85, the rule is down £10.

The short version

A rule that buys after a sharp drop and sells once the price is back near its recent average.

DrawingA drawing of the idea, not a real result.
The price drops well below its recent average, and the rule buys. It sells when the price is back near the average. The faint line is the other way it can go.

What it is

Mean reversion means going back to the average. A mean reversion rule works out a share's average price over the last few days or weeks. When the price drops well below that average, the rule buys. When the price is back near the average, it sells.

It is the opposite of momentum. A momentum rule holds what has been rising. A mean reversion rule buys what has dropped.

A worked example

A share has averaged £100 over the last 10 days. Most days it has closed within £2 of that. Today it closes at £95, far outside its usual range. The rule buys.

Say the price is back at £100 a week later. The rule sells and has made about 5%.

Say the price keeps sliding to £85. The rule is now down about 10%. The average it was waiting for has moved down too.

Tests of rules like this often show many small wins and a few large losses. A win is capped at the distance back to the average. A loss has no such cap.

What it does not tell you

  • Whether a drop is a wobble or the start of a slide. The rule reads the price and nothing else. It cannot tell the two apart.
  • That winning often means making money. A rule can win most of its trades and still lose overall, when the losses are bigger than the wins. The hit rate article works through an example.
  • What the trading cost. A rule like this trades often. Each trade has a cost, and the costs come out of the return.
  • What comes next. A test describes the dates it covered and nothing after them.

This leaves out how far below the average counts as a sharp drop, and how that is measured. The exact version is below.

On a Quantis result

The result shows two figures that are easy to mix up. Hit rate counts the days in the market that ended up. Win rate (trades) counts the finished trades that made a profit. For a rule like this, the second is the one that describes it.

The exact mathsFor anyone who wants the detail. Nothing above depends on reading it.

The core formula

# z-score variant (most common)
mean_n = rolling_mean(price, N)
std_n  = rolling_std(price, N)
z      = (price - mean_n) / std_n

if z < -2: buy   # oversold
if z > +2: sell  # overbought

# RSI variant
if RSI(14) < 30: buy
if RSI(14) > 70: sell

# Exit: z back through 0, or fixed N-bar holding period

The z-score is how many standard deviations the price is from its average over the last N bars (a bar is one day of prices, or one period on other data). The standard deviation is the usual size of the price's swings, so a z-score of -2 is a drop twice the usual size. RSI is another measure of how hard a price has fallen or risen lately, on a scale of 0 to 100.

Two settings control the rule: the lookback window N (typically 5 to 20 bars) and the entry threshold (1.5 to 2.5 standard deviations). A tighter threshold fires more often with less to gain on each trade; a wider one waits for bigger moves and rarely triggers. The holding periods are short (hours, days, occasionally weeks): the longer the hold, the more likely the drop was the start of a trend.

The academic reference is Lehmann (1990), which documented weekly reversal in US shares. Pairs trading is a related form: it buys one share and bets against a closely linked one, so the gap between the two is what reverts and the direction of the market as a whole matters less.

When it has done well and badly

It has done well when prices moved sideways around a steady level, with no fresh news. It has done badly in trends. In a falling market each drop is followed by another, and the rule collects losing trades that do not come back. The wins are capped (the price returns to its average) and the losses are not, so the win rate stays high right up to the point where the average loss outweighs the wins.

What to look at on the result

  • Win rate (trades). A rule that buys dips is built to win most of its closed trades and to win small. The card's Hit rate pill is a different figure (the days in the market that ended up), so the trade win rate is the one in Trades and holdings. A low win rate with a profit overall often means one large win is carrying the rest.
  • Calmar often low. The falls, when they come, are sharp, so the card's Calmar (MAR) pill (CAGR over the max drawdown) can be low even when the Sharpe ratio looks fine.
  • Trading frequency high. For a rule that is either in one instrument or out of it, the card shows closed round trips a year instead of a percentage turnover. A rule that barely trades leaves too few closed trades to read: below 10 the card does not interpret the trade statistics at all.
  • Costs. Costs scale with the number of trades. At 600%/yr turnover, 5 bps a round trip costs 0.3 points of return a year; 50 bps (a wide-spread small cap) costs 3 points, which takes a 1.2 Sharpe at 10% volatility to about 0.9.
  • The window tested. A test over calm years only shows the rule at its most favourable. One that also covers 2008, 2020 and 2022 includes the trends.
  • Exits. A version with no stop-loss (an exit at a set loss, or after a set number of bars) has nothing to cut a losing trade short.

Read next

  • Momentum → the opposite kind of rule: it holds what has been rising.
  • Hit rate → why winning 60% of the time is not the same as making money.
  • Start here → shares, funds and tests on past prices, from zero.
  • Lehmann (1990). Fads, martingales, and market efficiency. Quarterly Journal of Economics.