Short failed rallies in downtrends, May-October
Fire in May-October when close is below the 100-day SMA, the 100-day SMA is below the 200-day SMA, and today's close is a failed rally: close below the prior close after a 3-day gain above 3%. Enter short at close. Stop 2x ATR(14) above; target 3x ATR below.
From May through October, equity inflows seasonally fade and stocks already in downtrends lack the pension and bonus-cycle bid. Weak names with failing rallies face persistent seller pressure absent supportive flows.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.294R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.222R
By trade and by day, sized to 362 rules
What the numbers say
Across 554 trades on the laggard stocks, the average result was −0.294R after costs, and −0.258R on the winners. The result was negative in bull (−0.282R), flat (−0.430R) and bear (−0.199R) markets. In bull and flat markets it beat none of the random-date draws, so the loss fits the verdict.
How it was tested
The rule as written, coded once, run on every stock the same way.
- Side
- Short
- 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.95, by trade and by day, sized to the 362 rules in the search it came from
- Prices
- 15 years of daily bars through 2026-11-20; judged 2026-11-22
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 | 291 | −0.282R | −4.16 | −3.76 · 229d | −0.122R · beats 0% | −0.472R |
| Flat | 122 | −0.430R | −4.12 | −0.81 · 68d | −0.073R · beats 0% | −0.536R |
| Bear | 141 | −0.199R | −2.00 | −1.77 · 58d | −0.272R · beats 70% | −0.010R |
| All | 554 | −0.294R | −0.149R | −0.258R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 7.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
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class SeasonalFailedRallyLaggardShort:
name = "seasonal_failed_rally_laggard_short"
description = "May-Oct short of downtrending names (close<SMA100<SMA200) whose >3% 3-day rally fails with a lower close; fixed 2 ATR stop, 3 ATR target."
def __init__(self, rally_days: int = 3, rally_min_pct: float = 0.03, stop_atr_mult: float = 2.0, target_atr_mult: float = 3.0, atr_period: int = 14, min_bars: int = 220) -> None:
self._rally_days = rally_days
self._rally_min_pct = rally_min_pct
self._stop_mult = stop_atr_mult
self._target_mult = target_atr_mult
self._atr_period = atr_period
self._min_bars = min_bars
@staticmethod
def _month(bar: Bar):
try:
return bar.timestamp.month
except AttributeError:
pass
try:
return bar.date.month
except AttributeError:
return None
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < max(self._min_bars, 205):
return None
current = bars[-1]
month = self._month(current)
if month is None or month < 5 or month > 10:
return None
closes = [b.close for b in bars]
sma100 = sma(closes, 100)
sma200 = sma(closes, 200)
if sma100 is None or sma200 is None:
return None
s100 = Decimal(str(sma100))
s200 = Decimal(str(sma200))
if not (current.close < s100 and s100 < s200):
return None
# Failed rally: prior N-day gain > threshold ending yesterday, today closes lower
prev_close = bars[-2].close
base_close = bars[-(self._rally_days + 2)].close
if base_close <= 0 or prev_close <= 0:
return None
rally_pct = float(prev_close / base_close) - 1.0
if rally_pct <= self._rally_min_pct:
return None
if current.close >= prev_close:
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 target <= 0:
return None
risk = stop - entry
reward = entry - target
if risk <= 0 or reward <= 0:
return None
rr = reward / risk
if rr < Decimal("1.5"):
return None
# --- signal strength ---
# 1) rejection decisiveness: today's drop in ATR units (0-30)
drop_atr = float((prev_close - current.close) / atr_dec)
rej_score = min(30, max(0, int(drop_atr * 30)))
# 2) close weakness within today's range (0-20)
rng = current.high - current.low
if rng > 0:
close_pos = float((current.close - current.low) / rng)
else:
close_pos = 0.5
close_score = min(20, max(0, int((1.0 - close_pos) * 20)))
# 3) trend depth: SMA100 below SMA200 gap (0-25)
gap = float((s200 - s100) / s200)
trend_score = min(25, max(0, int(gap * 250)))
# 4) volume on rejection vs 20d avg (0-25)
avg_vol = sum(float(b.volume) for b in bars[-21:-1]) / 20.0
vol_ratio = float(current.volume) / max(avg_vol, 1.0)
vol_score = min(25, max(0, int((vol_ratio - 0.8) * 25)))
strength = max(0, min(100, rej_score + close_score + trend_score + vol_score))
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=strength,
thesis=(
f"Seasonal (May-Oct) laggard short: close below SMA100 < SMA200; "
f"{rally_pct * 100:.1f}% {self._rally_days}-day relief rally failed with a lower close. "
f"Absent seasonal inflows, supply into strength should push price lower. "
f"Fixed {self._stop_mult}x ATR stop, {self._target_mult}x ATR target."
),
)
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.