Month-end bounce after a sharp slide, long with ATR stop
Fire only if the latest bar is the last or second-to-last trading day of a month. Require at least 5 down closes in the last 7 bars, 10-day return <= -7%, and today's close above the prior close. Enter long at the latest close; stop 2 x ATR(14) below; target 3 x ATR(14) above.
Month-end redemption and rebalancing selling hits stocks with the largest recent losses (funds sell losers to meet outflows, and tax and window-dressing logic compounds it). When a stock falls 5 or more of the last 7 days into the last two trading days of the month and then posts an up close, sellers have rotated out and the new month's inflows lift prices; persistence comes from the compelled calendar nature of redemption.
Indistinguishable from luck
It looks positive, but not more than chance would produce at this many tries, or than the same plan on random dates.
- Positive (+0.135R a trade), but no market clears t > 2.95 by trade and by day.
42 large US stocks, 15 years
Before costs +0.204R
By trade and by day, sized to 362 rules
What the numbers say
On the laggards the idea averaged 0.135R a trade after costs over 145 trades. Bull markets showed 0.150R (t 0.97), flat 0.011R (t 0.07) and bear 0.524R (t 1.71). No market cleared the t bar of 2.95, so the result is indistinguishable from luck.
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 | 74 | +0.150R | 0.97 | 0.00 · 58d | −0.040R · beats 100% | +0.088R |
| Flat | 56 | +0.011R | 0.07 | −0.02 · 31d | −0.059R · beats 65% | +0.262R |
| Bear | 15 | +0.524R | 1.71 | 0.59 · 11d | +0.158R · beats 95% | +0.438R |
| All | 145 | +0.135R | −0.026R | +0.249R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 6.7 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
import math
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class MonthEndExhaustionLaggardLong:
name = "month_end_exhaustion_laggard_long"
description = "Up close in the last two trading days of a month after 5+ down closes in the prior 7 and a 7%+ 10-day drop; long with 2xATR stop, 3xATR target."
def __init__(self, min_down: int = 5, down_window: int = 7, ret_lookback: int = 10,
max_ret: float = -0.07, atr_period: int = 14, stop_atr: float = 2.0,
target_atr: float = 3.0, min_bars: int = 60) -> None:
self._min_down = min_down
self._down_window = down_window
self._ret_lookback = ret_lookback
self._max_ret = max_ret
self._atr_period = atr_period
self._stop_atr = stop_atr
self._target_atr = target_atr
self._min_bars = min_bars
@staticmethod
def _bar_date(bar):
try:
return bar.timestamp
except AttributeError:
pass
try:
return bar.date
except AttributeError:
return None
@staticmethod
def _weekdays_left_in_month(d) -> int:
count = 0
cur = d + timedelta(days=1)
while cur.month == d.month:
if cur.weekday() < 5:
count += 1
cur = cur + timedelta(days=1)
return count
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = len(bars)
if n < max(self._min_bars, self._ret_lookback + 3, self._down_window + 3, self._atr_period + 2):
return None
current = bars[-1]
prev = bars[-2]
d = self._bar_date(current)
if d is None:
return None
try:
left = self._weekdays_left_in_month(d)
except Exception:
return None
if left > 1:
return None
if current.close <= prev.close:
return None
# Down closes over the 7 bars BEFORE today (excludes today's up close)
downs = 0
for i in range(n - 1 - self._down_window, n - 1):
if bars[i].close < bars[i - 1].close:
downs += 1
if downs < self._min_down:
return None
# 10-day return into the month-end selloff, measured through the prior close
base = bars[-2 - self._ret_lookback].close
if base <= 0:
return None
ret10 = float(prev.close / base) - 1.0
if ret10 > self._max_ret:
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_atr)) * atr_dec
target = entry + Decimal(str(self._target_atr)) * atr_dec
if stop <= 0 or not (stop < entry < target):
return None
risk = entry - stop
rr = ((target - entry) / risk).quantize(Decimal("0.01"))
if rr < Decimal("1.5"):
return None
# Score: depth of selloff, persistence of selling, decisiveness of reversal, volume
depth_score = min(30, max(0, int((-ret10 - 0.07) * 300) + 10))
down_score = min(20, max(0, (downs - self._min_down + 1) * 7))
rng = current.high - current.low
close_pos = float((current.close - current.low) / rng) if rng > 0 else 0.5
close_score = min(25, max(0, int(close_pos * 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, depth_score + down_score + close_score + vol_score))
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr,
signal_strength=strength,
thesis=(f"Month-end exhaustion: {downs}/{self._down_window} down closes and a "
f"{ret10*100:.1f}% 10-day drop into the month's final sessions, then an up close. "
f"Forced redemption selling looks spent and new-month inflows should lift the price. "
f"Stop 2xATR, target 3xATR."),
)
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.