Skip to content
The Casebook · A classic strategy

Buy on re-entry inside the lower Bollinger band

Buy when the price closes back inside the lower Bollinger band after closing below it the day before.
VerdictTested Nov 22, 2026

Killed by costs

There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).

  • +0.074R a trade before costs, −0.015R after the spread and the selection haircut.
Trades on the laggards
2,210

42 large US stocks, 15 years

Per trade, after costs
−0.015R

Before costs +0.073R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

Across 2210 laggard trades the idea made +0.074R before costs but −0.015R after costs. By market it made −0.011R in bull, +0.042R in flat and −0.127R in bear markets (t −2.33). The same trades on today's winners made 0.072R. With costs the laggard result is below zero, which is why it is marked killed by costs.

How it was tested

Buy at the close when the stock closes back above its lower Bollinger band after closing below it the previous day.

Side
Long
Time limit
Exit at the close after 10 trading days, unless the stop, the target or its own exit comes first
Bar to clear
t > 2.01, by trade and by day, sized to a first try (one idea, tested once)
Prices
15 years of daily bars through 2026-11-20; judged 2026-11-22
Choices made where the idea was open
  • Bollinger bands use a 20-day simple moving average and 2 standard deviations
  • 'Closes back inside' means close at or above the lower band, compared with each day's own band
  • Stop is 2 x ATR(14) below entry, target is 4 x ATR(14) above entry
  • Time exit after 10 trading days since the idea gives no holding period
  • No exit rule beyond stop, target and time limit

The evidence

The laggards decide: 22 large stocks that lagged or fell, where hindsight can't flatter a rule. Today's winners sit beside them to show what survivorship would add.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull1,391−0.011R−0.38−1.78 · 802d−0.058R · beats 100%+0.094R
Flat505+0.042R0.890.38 · 233d−0.015R · beats 90%+0.129R
Bear314−0.127R−2.33−0.52 · 111d+0.021R · beats 0%−0.091R
All2,210−0.015R−0.037R+0.072R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 13.9 bps) plus 0.045R for the fills a real order wouldn't get. “By day” groups trades opened the same day, so a rule that fires on the same dates for every stock counts as a few events. “Random dates” places the same plan on random days of the same stocks in the same kind of market, 20 times; the idea must beat 95% of those draws.

The scanner we wroteShow the code
from decimal import Decimal
import math

from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate


class BollingerLowerBandReentryLong:
    name = "bollinger_lower_band_reentry_long"
    description = "Long when close re-enters at/above lower Bollinger band after prior close below it"

    def __init__(self, bb_period: int = 20, bb_std: float = 2.0, atr_period: int = 14, stop_atr: float = 2.0, target_atr: float = 4.0) -> None:
        self._n = bb_period
        self._k = bb_std
        self._atr_period = atr_period
        self._stop_atr = stop_atr
        self._target_atr = target_atr

    def _lower(self, closes):
        # closes: list of floats, length == n
        m = sum(closes) / len(closes)
        var = sum((c - m) ** 2 for c in closes) / len(closes)
        return m - self._k * math.sqrt(var)

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        n = self._n
        need = max(n + 1, self._atr_period + 1)
        if len(bars) < need:
            return None
        closes = [float(b.close) for b in bars]
        lower_t = self._lower(closes[-n:])
        lower_p = self._lower(closes[-n - 1:-1])
        if not (closes[-2] < lower_p and closes[-1] >= lower_t):
            return None
        atr_val = atr(bars, self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        atr_dec = Decimal(str(atr_val))
        entry = bars[-1].close
        stop = entry - Decimal(str(self._stop_atr)) * atr_dec
        target = entry + Decimal(str(self._target_atr)) * atr_dec
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None
        rr = (target - entry) / risk
        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=50,
            thesis="Closed back at/above the lower Bollinger band after a prior close below it.",
        )

Hypothetical results from our own backtest of the rule as restated, on 42 large US stocks over 15 years. Past performance, real or simulated, does not predict future results. Research and education only; not investment advice.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Buy on re-entry inside the lower Bollinger band: Killed by costs · EdgeProven