Short after a close 3 standard deviations above 20-day mean
Sell short when the price closes more than 3 standard deviations above its 20-day mean.
Killed by costs
There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).
- +0.078R a trade before costs, −0.008R after the spread and the selection haircut.
42 large US stocks, 15 years
Before costs +0.078R
By trade and by day, sized to a first try
What the numbers say
Across 300 laggard trades the idea made +0.078R a trade before costs and −0.008R after the spread and the selection haircut. In bull markets the result was −0.007R (t −0.12); in bear markets, −0.254R. The edge before costs was small, and costs absorbed it, hence the verdict.
How it was tested
Short at the close when a stock closes more than 3 standard deviations above its 20-day mean, betting on a reversion with a bracketed exit.
- Side
- Short
- 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
- 'Price' means the daily close, and the 20-day mean is the simple moving average of closes including the signal day
- Standard deviation is the 20-day population standard deviation of closes, the standard Bollinger band definition
- 'More than 3 standard deviations above' means close strictly greater than SMA20 + 3 * STD20
- Entry at the signal day's close, as the harness requires
- No stop or target was given, so stop = 2 x ATR(14) above entry and target = 2 x ATR(14) below entry
- No hold limit was given, so the time exit is the close after 10 trading days
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 | 249 | −0.007R | −0.12 | 0.67 · 210d | −0.099R · beats 95% | −0.220R |
| Flat | 39 | +0.061R | 0.42 | 0.39 · 37d | −0.162R · beats 95% | −0.279R |
| Bear | 12 | −0.254R | −1.00 | −1.25 · 11d | −0.089R · beats 25% | −0.646R |
| All | 300 | −0.008R | −0.107R | −0.231R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.4 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
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class ShortCloseAbove3SDBollinger:
name = "short_close_above_3sd_bollinger"
description = "Short when close > SMA20 + 3*STD20 (population), 2x ATR(14) stop and target"
def __init__(self, period: int = 20, num_sd: float = 3.0, atr_period: int = 14, stop_atr_mult: float = 2.0, target_atr_mult: float = 2.0) -> None:
self._period = period
self._num_sd = num_sd
self._atr_period = atr_period
self._stop_mult = stop_atr_mult
self._target_mult = target_atr_mult
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = self._period
if len(bars) < max(n + 1, self._atr_period + 2):
return None
current = bars[-1]
window = [Decimal(str(b.close)) for b in bars[-n:]]
mean = sum(window) / Decimal(n)
var = sum((c - mean) ** 2 for c in window) / Decimal(n)
sd = var.sqrt()
if sd <= 0:
return None
upper = mean + Decimal(str(self._num_sd)) * sd
entry = Decimal(str(current.close))
if entry <= 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))
stop = entry + Decimal(str(self._stop_mult)) * atr_dec
target = entry - Decimal(str(self._target_mult)) * atr_dec
if target <= 0:
return None
risk = stop - entry
if risk <= 0:
return None
rr = ((entry - target) / risk).quantize(Decimal("0.01"))
# Strength: extremity of z-score, volume spike, close weakness within the bar
z = float((entry - mean) / sd)
z_score = min(40, max(0, int((z - self._num_sd) / 1.36 * 40)))
prior = bars[-(n + 1):-1]
avg_vol = sum(float(b.volume) for b in prior) / max(len(prior), 1)
vol_ratio = float(current.volume) / max(avg_vol, 1.0)
vol_score = min(30, max(0, int((vol_ratio - 1) * 15)))
rng = Decimal(str(current.high)) - Decimal(str(current.low))
if rng <= 0:
weak = 0.0
else:
weak = float((Decimal(str(current.high)) - entry) / rng)
close_score = min(30, max(0, int(weak * 30)))
strength = max(0, min(100, z_score + vol_score + close_score))
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr,
signal_strength=strength,
thesis=f"Close is {z:.2f} SD above the 20-day mean, a statistical extreme; short for mean reversion with a 1:1 ATR bracket and 10-day time exit.",
)
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.