The Test Bench › Mean reversion

Mean Reversion Trading Strategy: How It Works, the Rules, and What Our Tests Found

What mean reversion is, why prices revert and when they do not, how a rule picks its entry and exit, and the risks, with what our tests found.

Mean reversion trading buys a stock after a sharp fall, expecting part of the move to reverse, and sells once the price has recovered some of it. Trend following takes the opposite view. Three choices shape a mean reversion rule: how the fall is measured, when the trade is closed, and which stocks are allowed in.

This page covers:

Mean reversion buys a sharp fall and sells the reboundA price that moves far from its recent average may move part of the way back.The fall is measured with an oscillator such as RSI below 30, a close below the lower Bollinger Band, a close far below a moving average, or several down days in a row.Each of these measures how far the price has stretched. None of them says it will snap back.
Exits are quick, and the losses come from falls that keep goingMost rules sell after a partial recovery, such as the first close back above a short moving average.That often gives many small gains. A stock whose fall has a lasting cause keeps falling, and those trades make the larger losses.How large the losses are matters as much as how often the rule wins.
A trend filter decides which dips are boughtMany rules buy dips only in stocks above their 200-day moving average.The filter keeps the rule out of stocks in a long decline. It also means the rule waits, and spends most of its time in cash.Judge a rule against buying and holding the same stock, and against how long its money was invested.

What is a mean reversion strategy?

Mean reversion is the idea that a price which has moved far from its recent average may move part of the way back. A mean reversion strategy expects an unusually strong move to partly reverse. It may buy after a fall or sell short after a rise, then exit with a rule designed to capture some of the reversal.

A mean reversion trade, on invented pricesBuy when the close falls below the lower band; sell at the first close back above the average.Close20-day averageLower Bollinger Band (2 standard deviations)BUYSELL
Invented prices. The same idea works with other measures of the fall, such as RSI below 30 or a close far below a moving average.

The trades are usually short-lived, often a few days. Some mean reversion rules produce many small gains and fewer, larger losses: in our backtest, the four rules won 65% to 67% of their trades. The losses come from the falls that keep going. Because the rule waits for an extreme, it also spends most of its time in cash, so its return should be compared with how long its money was actually invested.

The idea is applied in other forms too: to the price gap between two related stocks (pairs trading), to whole indices, and on intraday bars. This page covers single stocks on daily bars, the setting of our tests.

Why prices revert, and when they do not

One explanation is that short-term moves can overshoot. A burst of selling, a reaction to news or a fund cutting a position can push a price further than the news justifies, and part of the move comes back once the pressure passes. A mean reversion rule tries to buy at that point.

It fails when the fall has a lasting cause: a collapse in earnings, a change in the business, or a market-wide sell-off that keeps going. Then the price does not come back, and the rule holds a falling stock.

Mean reversion vs trend following

Trend following works the other way: it buys a stock that is rising, such as a close at a new 20-day high, and holds while the move continues. It often wins fewer trades and relies on a few large moves. Our Donchian breakout study tests a trend-following rule.

Mean reversionTrend following
BuysAfter a fallAfter a rise
Typical signalRSI(2) below 10A close at a new 20-day high
Typical holdDaysWeeks to months
WinsCan win often, with smaller gainsOften relies on fewer, larger gains
Loses onFalls that keep goingBreakouts that reverse
ExpectsThe move to fadeThe move to continue

The two can sit in the same rule: many mean reversion rules buy short-term weakness only inside a longer uptrend.

How a mean reversion rule is built

The entry: measuring the fall

The entry needs a way to say a stock has fallen far enough. The common choices are a short oscillator reaching an extreme, a close well below a moving average, a close below the lower Bollinger Band, or a run of down days. Our tests use four oscillators from the RSI family:

SignalOversold lineWhat it measuresTrades in our backtest (typical stock, 20 years)
RSI(2)Below 10Up and down closes over about two days132
RSI(14)Below 30Up and down closes over about three weeks6
ConnorsRSIBelow 10A 3-day RSI, the down streak and how unusual today’s fall is35
Stochastic RSIBelow 20Where RSI(14) sits in its own 14-day range209

A faster signal reaches its oversold line more often; a slower one reaches it only after a longer or larger decline. Each signal’s page explains its calculation with a worked example: RSI and RSI(2), ConnorsRSI and Stochastic RSI. A rule also chooses when to act: on the day the signal enters its zone, or on the day it leaves it, after the first up close.

The exit: taking the rebound

Mean reversion exits are usually short, because the trade was opened for a rebound. The common ones:

The trend filter: choosing which dips to buy

Many rules take a signal only when the close is above its 200-day moving average, a sign of a long-term uptrend. The filter aims to keep the rule out of stocks in a long decline, where falls have more room to continue, at the cost of fewer trades.

Costs and the comparison

A short-term rule trades often, so each trade’s cost is paid many times. To judge the result, compare it with buying and holding the same stock over the same period: a rule that is in the market for a small part of the year can win most of its trades and still end far behind a stock held throughout.

The risks of mean reversion trading

The signals, explained

Each signal’s page explains the calculation with a worked example, compares it with its closest relative, and lists our tests of it.

ConnorsRSI Explained

ConnorsRSI explained: its three parts, how each is calculated, and the 10 and 90 zones, with our tests on S&P 500 stocks.

Strategies & Signals · ConnorsRSI · 2 studies

Read the guide →

Stochastic RSI Explained

Stochastic RSI explained: how it places RSI in its own range, %K and %D, and the 20 and 80 zones, with our tests on S&P 500 stocks.

Strategies & Signals · Stochastic RSI · 2 studies

Read the guide →

Our mean reversion tests

We tested four RSI signals as the entry of one dip-buying rule on 483 S&P 500 stocks. RSI(2) had the highest median total return per stock, +45% over 2006 to 2026; buying and holding returned +361% and was invested every day.

Median total return per stock2006 to 2026, 0.02% a side0%+100%+200%+300%total return over the whole period, median of the stocksRSI(2)RSI(2): +45% — in the market 11%+45%in the market 11%RSI(14)RSI(14): +5% — in the market 0.5%+5%in the market 0.5%Stochastic RSIStochastic RSI: +44% — in the market 14%+44%in the market 14%ConnorsRSIConnorsRSI: +13% — in the market 3.2%+13%in the market 3.2%Buy and holdBuy and hold: +361% — in the market 100%+361%in the market 100%
Each bar is the median of 483 stocks’ total returns over the whole period, trades at the next day’s open. Price returns, dividends excluded.

Common questions

What is a mean reversion strategy?

A strategy that buys after a fall, or sells after a rise, on the expectation that the price will move back towards its recent average. It trades against the latest move and usually holds for days.

What is the difference between mean reversion and trend following?

Mean reversion buys weakness and expects part of the move to reverse; trend following buys strength and expects it to continue. Mean reversion rules often win more of their trades with smaller gains; trend-following rules often win fewer and rely on a few large moves.

Which indicators are used for mean reversion?

Indicators that mark a short-term extreme: oscillators such as RSI(2) and ConnorsRSI below 10, RSI(14) below 30 or Stochastic RSI below 20, a close far below a moving average, a close below the lower Bollinger Band, or several down days in a row. Most rules add a long-term trend filter such as the 200-day moving average.

What is a good exit for a mean reversion trade?

The common exits are a close back above a short moving average (the 5-day in Connors’ RSI(2) rule), the oscillator moving back past a level, or a fixed number of days. A short exit closes the trade once part of the fall has recovered.

What are the risks of mean reversion trading?

The falls that keep going. A stock bought after a drop can keep dropping when the cause lasts, and a rule without a stop holds it all the way. Frequent trading also pays costs often, and a rule that is mostly in cash can trail a stock held throughout.

Does mean reversion work in a bear market?

Falls are often larger and longer in a bear market, so more dips keep going. Many rules use a long-term trend filter for this reason and stand aside while a stock trades below its 200-day moving average.

What is the 200-day moving average filter?

A condition that takes a signal only when the stock’s close is above the average of its last 200 closes, a common sign of a long-term uptrend. Mean reversion rules use it to buy short dips only in stocks above the average and to stay out of stocks in a long decline.

Does mean reversion work?

In our backtest of four RSI-based entries on 483 S&P 500 stocks, every rule finished with a positive return on most stocks and the rules won 65% to 67% of their trades, but none beat buying and holding on more than 61 of the stocks. The rules were invested only 0.5% to 14% of the time, against 100% for buying and holding. Against a position of the same average size, a comparison we added after the main results, every rule came out ahead on most stocks. The rules produced positive median returns under the stated assumptions; the result does not show that mean reversion is a better general approach than holding stocks.

Which RSI is best for mean reversion?

No single answer holds for every rule. RSI(2) ranked first in this particular four-entry backtest on 483 S&P 500 stocks, with the highest median total return per stock over 2006 to 2026 as an entry (+45%), followed by Stochastic RSI (+44%), ConnorsRSI (+13%) and RSI(14) (+5%). The ranking applies to that rule — the same trend filter, exit and cost for every entry — these stocks and this period.

How long does a mean reversion trade last?

Often days, though no holding period is universal. Connors’ RSI(2) rule sells on the first close above the 5-day moving average, which often comes within a week; rules built on slower signals wait for slower moves.

Can you backtest a mean reversion strategy?

Yes. In GU Analyser you choose the oversold signal, the trend filter and the exit on a visual canvas and run a backtest or an event study on daily bars, with no code.

Want to test your own mean reversion rule?

Choose the oversold signal, the trend filter and the exit, and measure what followed the signal across your stocks, or backtest the rule with a cost on each trade.

Create a free account and build your own strategies → or read how to backtest a strategy without code →

The methods: how a backtest is built · how an event study works

These are historical analyses. They are neither advice nor forecasts. They describe what happened on past data under stated, simplified assumptions. Past results do not prove what will happen next, and nothing in the Test Bench is a recommendation to buy or sell an investment. GU Analyser is an analytical and educational tool — no money is ever traded here.