PnL ProfitEncyclopedia
🌐 English

Mean Reversion Trading

6 min read · Updated Nov 23, 2026
More in Algorithmic & Quant Trading

Mean reversion is the tendency of a price or spread that has moved far from its recent average to move back toward it. Mean reversion strategies buy after unusually sharp falls and sell after unusually sharp rises, betting that the move was an overreaction or a temporary imbalance. They tend to win often and lose rarely but heavily, which makes them attractive in calm markets and dangerous when a trend takes hold.

Key takeaways

  • Mean reversion bets that short-term price extremes partly reverse; trend following bets the opposite.
  • A z-score measures how far price sits from its average in units of standard deviation and is the standard way to define "extreme".
  • Bollinger Band and short-lookback RSI systems are popular retail versions of the same idea.
  • Returns are usually negatively skewed: high win rates with occasional large losses.
  • The main risk is a regime change, when a stretched price keeps going instead of snapping back.
On this page
  1. Why prices revert
  2. Short-term reversal
  3. Measuring "stretched": the z-score
  4. Common retail systems
  5. Negative skew
  6. When mean reversion fails
  7. Worked example
  8. Common mistakes

Why prices revert

Several mechanisms can push prices back toward an average over short horizons:

  • Liquidity demand. A large seller who needs to exit quickly pushes the price below fair value. Traders who absorb that selling demand compensation, earned when the price recovers.
  • Overreaction. Traders sometimes react too strongly to news, sentiment or sharp moves, and prices partly correct.
  • Bid-ask bounce. Trades alternate between the bid and the ask, creating a statistical reversal in recorded prices that cannot actually be captured. Backtests on trade prices can mistake this for a tradable edge.
  • Structural anchors. Some spreads, such as the price gap between two closely related assets, are tied together by economics, which is the basis of pairs trading.

Short-term reversal

Academic studies from around 1990, including work by Jegadeesh and by Lehmann, found that US stocks with the worst returns over the past week or month tended to outperform over the following week or month, and the best performers tended to lag. This short-term reversal effect sits alongside medium-term momentum, where 3- to 12-month winners tended to keep winning. The two are not contradictory: they operate at different horizons.

Much of the short-term reversal profit in research comes from small, illiquid stocks and is sensitive to trading costs. After realistic costs, simple versions are much less attractive than the raw figures suggest.

Measuring "stretched": the z-score

The z-score expresses how unusual the current price is relative to its recent history:

z = (Price − Moving average) / Standard deviation of price over the same window

A z-score of −2 means the price is two standard deviations below its average. A typical rule set:

  • Enter long when z falls below −2; enter short when z rises above +2.
  • Exit when z returns to 0 (the average), or at a time stop.
  • Optionally, add a stop if z reaches an extreme such as ±4.
import pandas as pd

def zscore_positions(close: pd.Series, lookback=20, entry=2.0, exit=0.0) -> pd.Series:
    mean = close.rolling(lookback).mean()
    std = close.rolling(lookback).std()
    z = (close - mean) / std
    pos, out = 0, []
    for zt in z:
        if pos == 0 and zt < -entry:
            pos = 1
        elif pos == 0 and zt > entry:
            pos = -1
        elif pos == 1 and zt >= -exit:
            pos = 0
        elif pos == -1 and zt <= exit:
            pos = 0
        out.append(pos)
    return pd.Series(out, index=close.index)

The position is computed from the close, so it should be applied to the next bar's return to avoid look-ahead bias, as explained in backtesting.

Common retail systems

Bollinger Band reversion

Bollinger Bands plot a moving average with bands two standard deviations above and below. Buying at the lower band and exiting at the middle band is essentially a z-score system with entry at −2 and exit at 0.

Short-lookback RSI

The RSI normally uses 14 periods, but mean reversion traders often use much shorter settings. A 2-period RSI, popularized by trader and author Larry Connors, flags very short-term extremes. A common pattern is to buy when a 2-period RSI drops below 10 while the price is above its 200-day average, and to exit when the RSI recovers or the price closes above a short moving average. The long-term filter tries to buy dips only in uptrends, reducing the risk of catching a falling knife.

Trend filters and time stops

Many reversion systems add a filter that avoids trading against a strong trend, and a time stop that exits if the expected bounce has not happened within a few bars. A trade that does not revert quickly is often a sign that conditions have changed.

Negative skew

Mean reversion strategies usually have high win rates. Most stretched prices do bounce a little. But the losing trades are the ones where the price keeps moving: a stock that falls 10% on bad news and then falls another 30%, or a currency that breaks out of a long range.

That pattern produces negative skew: a long left tail of rare, large losses. Equity curves can look smooth for years and then give back months of gains in days. It is the mirror image of trend following.

When mean reversion fails

  • Regime changes. A range-bound market turns into a trending one, often after a fundamental shock.
  • News-driven moves. Earnings surprises, takeovers, fraud revelations and central bank shifts can reprice an asset permanently. What looks like an overreaction may be the market adjusting to new information.
  • Liquidity crises. In broad sell-offs, many assets stay stretched together, and the traders who normally provide liquidity are forced to sell as well.
  • Gaps. Prices can jump overnight past any stop.
  • Crowding. When many funds run similar reversion strategies, their simultaneous exits can make the stretch worse, as happened to equity market-neutral funds in August 2007.

Worked example

A z-score trade

A stock has a 20-day average close of 100 dollars and a 20-day standard deviation of 2 dollars. Today it closes at 95 dollars.

  • z = (95 − 100) / 2 = −2.5, below the −2 entry threshold, so the system buys 200 shares at the next open, say 95.20 dollars.
  • Four days later the price closes at 99.80 dollars, close to the average (z ≈ −0.1, assuming the average and standard deviation are unchanged), so the position stays open.
  • The next day it closes at 100.30 dollars, z turns positive, and the position is sold at the following open, 100.10 dollars.
  • Gross profit = (100.10 − 95.20) × 200 = 980 dollars, before costs.

The negative skew trap

A reversion system wins 75% of its trades with an average win of 1% and an average loss of 2.5%.

  • Expectancy = 0.75 × 1% − 0.25 × 2.5% = 0.75% − 0.625% = +0.125% per trade.
  • One unprotected trade that loses 15% on a gap wipes out the expected profit of 15 / 0.125 = 120 average trades.

This is why position size limits and a plan for gap risk matter more for mean reversion than for most strategies.

Common mistakes

  • Averaging down without limits. Adding to a losing reversion trade can turn a small loss into a catastrophic one.
  • No stop or time stop. "It has to come back" is not a risk plan.
  • Backtesting on trade prices with tiny targets. Bid-ask bounce and spreads can make a worthless signal look profitable.
  • Ignoring news. A stretched price after a major announcement is very different from a stretched price on no news.
  • Judging by win rate. An 80% win rate tells you nothing without the size of the losses.

FAQ

What is mean reversion in trading?

Mean reversion is the idea that prices that move far from their average tend to move back toward it. Traders exploit this by buying after sharp drops and selling after sharp rises, usually with defined exit rules.

Is mean reversion better than trend following?

Neither is better in general. Mean reversion tends to work in range-bound markets and trend following in trending markets, and their return patterns differ: mean reversion has frequent small wins and rare large losses, trend following the reverse.

What z-score should I use for mean reversion?

Entry thresholds of about ±2 standard deviations are common, with exits near zero. The right values depend on the market, the lookback and costs, and should be tested out-of-sample rather than finely optimized.

Why do mean reversion strategies blow up?

They often hold positions that move further against them during trends, crises or news shocks. Combined with leverage or averaging down, a few such trades can erase years of small gains.

Educational content only. Nothing here is financial, investment, legal or tax advice. Trading carries a high risk of loss, and leveraged products can lose more than you deposit. Rules, fees and platform details change: check current terms with your broker, exchange or regulator before you trade.