Early-month long on stocks down over 10% in 21 days
Fire on sessions 1 or 2 of a new month if the stock's 21-day return is below -10% and the close is above the prior day's low. Enter long at close. Stop 2x ATR(14) below; target 3x ATR above.
Fund redemptions and window-dressing sales concentrate at month end in the weakest holdings. On the first two sessions of the new month, redemptions stop and the oversold stock sees reversion as fresh allocations go to the cheapest names. The stock-specific filter requires an actual deep month-long loss.
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.006R after the spread and the selection haircut.
42 large US stocks, 15 years
Before costs +0.074R
By trade and by day, sized to 362 rules
What the numbers say
On the 22 laggards (331 trades), the idea made +0.074R a trade before costs but +0.006R after costs, far short of the 2.95 bar. By market type, flat markets lost −0.246R (t −2.11), while bull (0.05R) and bear (0.217R) results were weak: bear trailed the random-date mean of 0.2337R. Costs absorbed nearly all the edge.
How it was tested
The rule as written, coded once, run on every stock the same way.
- Side
- Long
- 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 | 150 | +0.050R | 0.52 | 0.64 · 97d | −0.026R · beats 95% | +0.204R |
| Flat | 97 | −0.246R | −2.11 | −0.53 · 45d | −0.025R · beats 5% | −0.122R |
| Bear | 84 | +0.217R | 1.64 | 0.16 · 21d | +0.234R · beats 45% | +0.319R |
| All | 331 | +0.006R | +0.040R | +0.140R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 8.3 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 MonthTurnFlushReversionLong:
name = "month_turn_flush_reversion_long"
description = "Long on session 1-2 of a new month after a >10% 21-day loss, close above prior low; stop 2x ATR, target 3x ATR"
def __init__(self, ret_lookback: int = 21, ret_threshold: float = -0.10, atr_period: int = 14, stop_atr_mult: float = 2.0, target_atr_mult: float = 3.0, min_bars: int = 60) -> None:
self._ret_lookback = ret_lookback
self._ret_threshold = ret_threshold
self._atr_period = atr_period
self._stop_mult = stop_atr_mult
self._target_mult = target_atr_mult
self._min_bars = min_bars
@staticmethod
def _ym(b: Bar):
ts = b.timestamp
return (ts.year, ts.month)
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < max(self._min_bars, self._ret_lookback + 3, self._atr_period + 2):
return None
cur = bars[-1]
prev = bars[-2]
prev2 = bars[-3]
# Session 1 or 2 of a new month
m0, m1, m2 = self._ym(cur), self._ym(prev), self._ym(prev2)
if m0 != m1:
session = 1
elif m1 != m2:
session = 2
else:
return None
# Deep 21-day loss
base = bars[-(self._ret_lookback + 1)].close
if base is None or base <= 0:
return None
ret = float(cur.close / base) - 1.0
if ret >= self._ret_threshold:
return None
# Close above prior day's low
if cur.close <= prev.low:
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 = cur.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
risk = entry - stop
if risk <= 0:
return None
rr = ((target - entry) / risk).quantize(Decimal("0.01"))
# Strength: depth of loss (0-35)
depth = -ret
depth_score = min(35, max(0, int((depth - 0.10) / 0.20 * 35)))
# Close position within today's range (0-25)
rng = cur.high - cur.low
if rng > 0:
close_pos = float((cur.close - cur.low) / rng)
else:
close_pos = 0.5
close_score = min(25, max(0, int(close_pos * 25)))
# Volume vs 20-day average (0-25)
vols = [float(b.volume) for b in bars[-21:-1]]
avg_vol = sum(vols) / len(vols) if vols else 0.0
vol_ratio = float(cur.volume) / avg_vol if avg_vol > 0 else 1.0
vol_score = min(25, max(0, int((vol_ratio - 0.8) * 25)))
# Session timing (0-15): session 1 is the cleanest flow turn
sess_score = 15 if session == 1 else 8
strength = int(max(0, min(100, depth_score + close_score + vol_score + sess_score)))
thesis = (
f"Month-turn flush reversion: session {session} of new month, 21-day return {ret*100:.1f}% "
f"(< {self._ret_threshold*100:.0f}%), close {cur.close} above prior low {prev.low}. "
f"Month-end redemption/window-dressing selling has ended; expecting reversion as new-month flows return. "
f"Stop {self._stop_mult}x ATR, target {self._target_mult}x ATR per spec."
)
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr,
signal_strength=strength,
thesis=thesis,
asset_class="equity",
)
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.