Short above the upper Bollinger band, cover at the middle
Short when the price closes above the upper Bollinger band (20, 2) and cover at the middle band.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.098R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.019R
By trade and by day, sized to a first try
What the numbers say
On the 22 laggard stocks, 4845 trades averaged −0.098R after costs, versus −0.206R on the 20 winners. Before costs the average was only about −0.019R, so costs widened the loss. The result was negative in bull (−0.080R), flat (−0.079R) and bear (−0.371R) markets, which is why the verdict reads as losing money.
How it was tested
Short at the close when the stock closes above the upper Bollinger band (20, 2) and cover when the close falls back to the 20-day middle band.
- Side
- Short
- Its own exit
- At each close after entry, cover at that close if close <= the current 20-day SMA of close (the middle band, recomputed each day)., checked at each close
- Time limit
- Exit at the close after 30 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
- Bollinger bands use a 20-day simple moving average and 2 population standard deviations of closing prices
- Entry is at the close of the signal day that closes above the upper band
- Middle band is the 20-day SMA recomputed daily, so the cover level moves with price
- Cover triggers at the first close at or below the middle band
- Idea named no stop, so a 3 x ATR(14) stop is added as protection
- Target set at 6 x ATR(14) so the middle-band exit governs
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.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 3,878 | −0.080R | −6.07 | −4.50 · 1,671d | −0.092R · beats 70% | −0.191R |
| Flat | 675 | −0.079R | −2.66 | −1.83 · 329d | −0.108R · beats 85% | −0.320R |
| Bear | 292 | −0.371R | −8.88 | −4.56 · 125d | −0.128R · beats 0% | −0.164R |
| All | 4,845 | −0.098R | −0.097R | −0.206R |
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.5 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 codeHide
from decimal import Decimal
import math
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class BollingerUpperBandFadeShort:
name = "bollinger_upper_band_fade_short"
description = "Short at the close above the upper Bollinger band (20, 2); cover at close <= 20-day SMA."
def __init__(self, period: int = 20, num_std: float = 2.0, atr_period: int = 14, stop_mult: float = 3.0, target_mult: float = 6.0) -> None:
self._period = period
self._num_std = num_std
self._atr_period = atr_period
self._stop_mult = stop_mult
self._target_mult = target_mult
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = self._period
if len(bars) < max(n, self._atr_period + 1) + 1:
return None
closes = [float(b.close) for b in bars[-n:]]
mean = sum(closes) / n
var = sum((c - mean) ** 2 for c in closes) / n
sd = math.sqrt(var)
upper = mean + self._num_std * sd
current = bars[-1]
if float(current.close) <= upper:
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 = current.close
stop = entry + Decimal(str(self._stop_mult)) * atr_dec
target = entry - Decimal(str(self._target_mult)) * atr_dec
if not (target < entry < stop):
return None
rr = (entry - target) / (stop - entry)
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=50,
thesis="Closed above the upper Bollinger band (20, 2); fading toward the 20-day middle band.",
)
def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
n = self._period
if len(bars) < n:
return False
mid = sum(float(b.close) for b in bars[-n:]) / n
return float(bars[-1].close) <= mid
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.
Describe it in plain words and get the same honest test in about a minute.