Skip to content
Menu
Finabase Learn

Strategies · Mean reversion

Bollinger Band mean reversion: buying the lower band, tested

Buy a close below the lower Bollinger Band and sell at the middle band: the exact rules, a two-year backtest with costs on SPY and 30 stocks, and why it disappointed.

On this page
  1. The idea
  2. The rules
  3. What the backtest shows
  4. The same rule on 32 other symbols
  5. Where it fails: the losing periods
  6. Compared with its neighbours
  7. How Finabase does it
  8. Frequently asked questions
  9. Summary
  10. Check your understanding

Bollinger Bands draw an envelope around a price: a 20-day average in the middle, and a band two standard deviations above and below it. Most closes fall inside the envelope, so a close below the lower band looks like a price that has gone too far. The simplest strategy built on that picture buys the close below the lower band and sells when the price is back at the middle band.

This lesson states that rule exactly and tests it on two years of daily bars, on SPY and then on 32 other symbols. Two years of daily data shows how a rule behaves, not whether it works. What it showed here is a rule that won three trades in four and still returned less than half of what holding did, for a reason that is built into the bands themselves.

The idea

The bands measure how far a price is from its recent average, in units of its own recent standard deviation. If daily closes scattered around their average like a bell curve, a close two standard deviations below would be rare, and most of the time the next move would be back toward the middle.

Prices are not that tidy. The average itself moves, and volatility comes in bursts: a calm month makes the bands narrow, and then an ordinary bad day lands outside them. More important, the first close below the lower band is also how every large decline starts. The rule cannot tell an overshoot from the first step of a trend, so it buys both.

The rules

Checked once a day, at the close:

  1. Compute the middle band, the average of the last 20 closes, and the lower band, the middle band minus two standard deviations of those 20 closes.
  2. If no position is held and the close is below the lower band, buy at that close.
  3. If a position is held and the close is at or above the middle band, sell at that close.
  4. Hold one position at most. Otherwise hold cash.

There is no stop-loss. The exit is the middle band, wherever it has moved to by then.

SPY daily, January to July 2025, with Bollinger Bands (20, 2): buys (▲) and sells (▼) $500 $550 $600 Middle band (20-day average) Upper and lower band Feb Mar Apr May Jun Jul
SPY daily, January to July 2025, with Bollinger Bands (20, 2). Up triangles are buys (close below the lower band), down triangles are sells (close at or above the middle band).

A worked example, and its mirror image

On June 10, 2026 SPY closed at $725.43, under a lower band of $727.30. The middle band stood at $745.62. The rule bought. Three trading days later SPY closed at $754.83, above the middle band, and the rule sold for a gain of 3.8% after costs. That is the trade the strategy is designed for.

Now the other kind. On February 25, 2025 SPY closed at $594.24, a few cents under a lower band of $594.44, with the middle band at $604.16. The rule bought. The market kept sliding and by March 13 SPY closed at $551.42, 7.2% below the entry. The middle band was sliding too. On March 24 SPY closed at $574.08, just above a middle band that had fallen to $572.44, and the rule sold: a loss of 3.6%.

The price did return to its mean. The mean had moved $32 lower in the meantime.

What the backtest shows

The test, stated in full so it can be checked:

  • Data. SPY daily closes from November 18, 2024 to November 17, 2026: 501 bars, the two years of daily history the Finabase chart data provides. The first 19 bars build the first bands.
  • Trading. The signal and the trade both use the same day's close.
  • Costs. 0.10% of the amount on every buy and every sell, for the spread and any commission.
  • Left out. Dividends, interest on cash and taxes. The rule is in cash 82% of the time, so interest would have helped it; all its gains are short-term, so US taxes would have hurt it more than they hurt holding.
SPY daily, 2024-11 to 2026-11: Bollinger Band rule against buy and hold, 0.10% per trade, no dividends $1 $1.2 Growth of $1 Buy and hold Band rule 0% −10% −20% Fall from the peak Dec Feb Apr Jun Aug Oct Dec Feb Apr Jun Aug Oct
SPY daily, November 2024 to November 2026: the Bollinger Band rule against buy and hold, 0.10% per trade, dividends not included. Top: growth of $1. Bottom: the fall from the highest value so far.
Measure Band rule Buy and hold
Total return 10.5% 24.5%
Return per year (CAGR) 5.2% 11.7%
Deepest fall from a peak −10.9% −19.0%
Longest time below a peak 189 trading days 88 trading days
Time invested 18% 100%
Trades 12 1
Trades with a gain 75% n/a

The rule returned less than half of what holding returned. Its deepest fall was smaller, 10.9% against 19.0%, but it took 189 trading days to get back to its earlier high, more than twice as long as the fund itself. A strategy that is in cash four days in five recovers slowly, because it only earns on the days it trades.

Costs were a small part of the story: 13.1% with no cost against 10.5% with it. Twelve trades are too few for costs to dominate. The problem is the trades themselves. Nine gains averaged 2.1% and three losses averaged −3.0%, and the last trade, bought on October 30, 2026 at $755.72, was still open and 3.2% down when the data ended.

The two halves of the period

Period Band rule Buy and hold
November 2024 – November 2025 1.9% 12.2%
November 2025 – November 2026 8.5% 11.0%

Almost all of the rule's return came in the second year. The first year contained the spring 2025 decline, where it bought twice into a falling market.

Neighbouring settings

Setting (SPY, same two years) Total return Deepest fall Trades Trades with a gain Time invested
20 days, 1.5 deviations 11.8% −11.8% 16 81% 23%
20 days, 2 deviations (the rule) 10.5% −10.9% 12 75% 18%
20 days, 2.5 deviations 1.7% −10.8% 6 50% 13%
10 days, 2 deviations 24.7% −7.6% 15 93% 14%
50 days, 2 deviations −5.7% −14.8% 3 33% 15%
20 days, 2 deviations, sell at upper band 24.3% −16.5% 7 86% 56%

The results are scattered, from −5.7% to 24.7%, and that scatter is the finding. A sturdy effect would look similar at 10, 20 and 50 days. Here the 10-day version looks excellent and the 50-day version loses money, on three trades. Picking the 10-day line after seeing this table would be overfitting. The "sell at the upper band" version did well mainly because it stayed invested 56% of the time in a rising market.

The same rule on 32 other symbols

Symbols, daily, same two years Rule, median return Holding, median return Rule gained on Rule beat holding on
SPY, QQQ, IWM 3.2% 24.5% 2 of 3 0 of 3
30 Dow stocks 14.6% 24.8% 21 of 30 10 of 30

On QQQ the rule lost 3.6% while the fund gained 31.4%. Across the 30 Dow stocks it made 269 trades: 67% gained, the average trade made 1.0% after costs, the best made 18.7% and the worst lost 33.2%. Its deepest fall was shallower than the stock's own on all 30, which is what being in cash most of the time buys.

The stock list is today's Dow membership, so companies removed after poor results are missing (survivorship bias). That flatters both columns.

On five years of weekly bars (20 weeks, 2 deviations) the picture is similar. The rule returned 25.3% on SPY against 60.9% for holding, on five trades. On the 30 Dow stocks it gained on 28 and beat holding on 12, with a worst trade of −33.4%. Weekly band breaks were rarer and recovered more often, but five trades in five years is far too few to conclude anything.

Where it fails: the losing periods

  • Declines that last longer than the bands. The three SPY losses all came from buying early in a decline that went on for weeks: February 25, 2025 (sold 19 trading days later, −3.6%), March 6, 2026 at $672.38 (sold 20 days later at $658.93, −2.2%, after closing as low as $631.97) and October 30, 2026 (still open, −3.2%). Eight of the nine winning trades lasted one to five days; the one bought on April 3, 2025 took 14.
  • The moving target. Because the exit is a falling average, the rule can never do better in a decline than "less bad than it looked at the low". It takes the full fall and sells into the first partial recovery.
  • A stock in real trouble. The rule traded UnitedHealth (UNH) nine times in two years as the stock lost a third of its value. It lost 40.3% on it, more than the 33.9% lost by holding, because it kept buying fresh breaks on the way down.
  • Missing the rise. The rule held SPY on 18% of days. In a period when the fund gained 24.5%, most of that gain arrived on days the rule spent waiting for a band break.
  • Small samples. Twelve trades cannot separate skill from luck, and three of them decided the result.

Compared with its neighbours

Approach Buys when Sells when Trades on SPY, two years Total return
Bollinger Band rule Close below the lower band Close at or above middle band 12 10.5%
Two-day RSI rule Two-day RSI below 10 Close above the 5-day average 29 26.5%
Buy and hold Once Never 1 24.5%

The two-day RSI rule is a faster version of the same bet: it asks for two weak days, not a 20-day extreme, and it leaves after a few days. On this data the faster rule did better, mostly because its exit, a five-day average, falls less far behind the price than a 20-day one.

How Finabase does it

No Finabase tool runs this rule for you or tells you when to trade. The tools also read the bands differently from this page, which is worth knowing before comparing results.

  • Chart. Bollinger Bands are an overlay with an editable period and deviation; the link above opens SPY with the standard 20 and 2.
  • Backtest. The Backtest tool trades the study's own signals, and for Bollinger Bands those are breakout signals: a close above the upper band is bullish and a close below the lower band is bearish. That is the opposite of the rule tested here, which buys the close below the lower band. The tool also buys a fixed $10,000 per signal and charges no trading cost.
  • Strategy. The Strategy tool builds if/then rules from comparisons and replays them over two years. It decides what to hold from the current values each day, so an entry at one level with an exit at another has to be approximated.

Frequently asked questions

Is a close below the lower Bollinger Band a buy signal?

Not by itself. In this test, buying every such close on SPY returned 10.5% over two years against 24.5% for holding. John Bollinger's own guidance is that a tag of a band is information about where the price is relative to its recent range, to be combined with other evidence, not a signal.

Why did the rule lose on trades where the price reached the middle band?

Because the middle band is a 20-day average and it follows the price down. In February 2025 the rule bought at $594.24 and sold at the middle band a month later at $574.08. By then the average had fallen $32, so reaching it was still a loss.

Would a different band width fix it?

The test does not suggest so. Widths of 1.5, 2 and 2.5 deviations returned 11.8%, 10.5% and 1.7% on SPY, all well behind holding, and different lookback lengths gave results from −5.7% to 24.7% on a handful of trades each.

How is this different from the RSI(2) rule?

Both buy weakness. The two-day RSI reacts to two bad days and exits within days; the band rule waits for a 20-day extreme and exits at a 20-day average, so it holds losing trades for weeks. On this data the band rule's losing trades lasted 19, 20 and 12 trading days.

Summary

The Bollinger Band rule buys a close below the lower band and sells at the middle band. On SPY over the two years to November 2026 it won nine of twelve trades and returned 10.5% after costs, against 24.5% for holding. Its losses came from buying the start of declines and then selling at a middle band that had fallen below the entry price. Neighbouring settings gave scattered results, and on the 30 Dow stocks the rule beat holding on only ten, with a worst trade of −33.2%. Two years cannot prove a rule good or bad, but this test gives no reason to treat a band break as a signal on its own.

Check your understanding

4 questions on this lesson. Each answer comes with the reason, and nothing is scored.

  1. A stock closes at $98. Its 20-day average is $104 and its lower Bollinger Band is $99. No position is held. What does the rule do?

    1. Buys at the close, because the close is below the lower band
    2. Waits for the price to climb back inside the band
    3. Sells short, because the price is falling
    Show the answer

    A. Buys at the close, because the close is below the lower band The entry is a close below the lower band. The position is sold at the first close at or above the middle band, wherever that band is by then.

  2. The rule bought SPY at $594.24 and sold it a month later when the price reached the middle band, at $574.08. How can reaching the mean be a loss?

    1. The trade was closed by a stop-loss
    2. Costs were larger than the gain
    3. The middle band is a moving average and had fallen below the entry price
    Show the answer

    C. The middle band is a moving average and had fallen below the entry price The 20-day average follows the price down. In a decline the target comes to the price, so the exit can sit well below the entry. The rule has no stop.

  3. Changing the lookback from 20 days to 10 raised the SPY result from 10.5% to 24.7%; changing it to 50 gave −5.7%. What is the sound conclusion?

    1. Use 10 days from now on
    2. The result depends heavily on the setting, on a few trades each, so none of them is reliable evidence
    3. Longer lookbacks never work
    Show the answer

    B. The result depends heavily on the setting, on a few trades each, so none of them is reliable evidence A sturdy effect looks similar across neighbouring settings. Results that swing from a loss to a large gain on a handful of trades mostly reflect luck, and choosing the best one is overfitting.

  4. The rule won 75% of its SPY trades but returned less than half of buy and hold. Which two facts explain that best?

    1. Its losses were larger than its gains, and it was in cash 82% of the time while the market rose
    2. It paid very high trading costs and taxes
    3. It traded the wrong fund
    Show the answer

    A. Its losses were larger than its gains, and it was in cash 82% of the time while the market rose Nine gains averaged 2.1% and three losses averaged −3.0%, and the rule held the fund on only 18% of days in a period when the fund gained 24.5%. Costs took under three points.

Sources and further reading

  1. John Bollinger, Bollinger on Bollinger Bands (McGraw-Hill, 2001) — the bands and the warning that a tag of a band is not a signal
  2. John Bollinger, Bollinger Band Rules (rule 6: tags of the bands are not signals)
  3. Finabase chart data — SPY, QQQ, IWM and the 30 Dow stocks, daily bars November 2024 to November 2026 and weekly bars from November 2021; rule and results computed by Finabase