Sell in May: hold stocks only November through April
Sell in May and go away: hold stocks only from November through April.
Killed by costs
There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).
- +0.060R a trade before costs, −0.014R after the spread and the selection haircut.
42 large US stocks, 15 years
Before costs +0.060R
By trade and by day, sized to a first try
What the numbers say
On the 22 laggards the idea made +0.060R a trade before costs but −0.014R after spread and the selection haircut, over 313 trades. Bull-market trades came in at −0.098R and never beat the random-date mean. The 20 winners made 0.317R, so the laggard result decides the verdict.
How it was tested
Buy each stock at the close of the first trading day of November and hold it through the end of April, testing the 'sell in May' seasonal effect.
- Side
- Long
- Its own exit
- Exit at the close of the last trading day of April (the last bar dated in April, i.e. the next bar's date falls in May)., 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
- 'November through April' means entering at the close of the first trading day of November and exiting at the close of the last trading day of April.
- The harness limits holds to 30 trading days, so the hold is capped at 30 bars rather than the full ~120-day window.
- Stop (3 x ATR(14)) and target (6 x ATR(14)) are wide protective levels chosen because the idea names none; the calendar exit is the real exit.
- The idea is tested as a long-only trade per stock and signal year.
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 | 204 | −0.098R | −1.32 | −0.89 · 10d | −0.013R · beats 0% | +0.346R |
| Flat | 87 | +0.103R | 0.76 | 0.23 · 4d | −0.108R · beats 100% | +0.242R |
| Bear | 22 | +0.303R | 1.64 | — · 1d | +0.111R · beats 80% | +0.342R |
| All | 313 | −0.014R | −0.031R | +0.317R |
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.6 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 datetime import datetime, timedelta
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
def _bar_date(b):
try:
return b.timestamp
except AttributeError:
return b.date
class HalloweenSeasonalLongNovToApr:
name = "halloween_seasonal_long_nov_to_apr"
description = "Long at first trading day close of November; exit at last trading day close of April."
def __init__(self, atr_period: int = 14, stop_mult: float = 3.0, target_mult: float = 6.0) -> None:
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:
if len(bars) < self._atr_period + 2:
return None
cur_d = _bar_date(bars[-1])
prev_d = _bar_date(bars[-2])
if cur_d.month != 11 or prev_d.month != 10:
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_mult)) * atr_dec
target = entry + Decimal(str(self._target_mult)) * atr_dec
if stop <= 0 or not (stop < entry < target):
return None
rr = (target - entry) / (entry - stop)
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=50,
thesis="First trading day of November: seasonal long, calendar exit at end of April.",
)
def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
d = _bar_date(bars[-1])
if d.month == 4:
# Last trading day of April: no weekday remains in April after today
# (no NYSE holidays fall at the end of April). Uses calendar only, no future bars.
nxt = d + timedelta(days=1)
while nxt.month == 4:
if nxt.weekday() < 5:
return False
nxt = nxt + timedelta(days=1)
return True
if 5 <= d.month <= 10:
return True
return False
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.