Short weak stocks in the first 3 days of a month
Entry at latest close if the latest bar is in the first 3 trading days of a calendar month, close is below the 200-day SMA and below the 20-day SMA, and the close is below the open on the day (no inflow bid). Stop = entry plus 1.5x ATR(14). Target = entry minus 2x ATR(14).
The first sessions of a month see 401k/pension inflows concentrated into winners and index weights, while laggards under the 200-day average receive little of it. A weak stock failing to bounce on the inflow days reveals absent demand and is vulnerable to continued selling. Pairing the calendar window with a laggard filter makes trades stock-specific.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.222R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.129R
By trade and by day, sized to 362 rules
What the numbers say
On the 22 laggards, 1854 trades averaged −0.222R after costs (−0.129R before costs); the 20 winners averaged −0.365R. Every market type lost: bull −0.224R, flat −0.130R, bear −0.399R. Bull and bear also did worse than same-plan trades on random dates (0.0% of draws beaten). The verdict follows from the negative result.
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 | 1,167 | −0.224R | −5.89 | −2.94 · 301d | −0.135R · beats 0% | −0.411R |
| Flat | 460 | −0.130R | −2.03 | −0.58 · 94d | −0.109R · beats 30% | −0.288R |
| Bear | 227 | −0.399R | −5.21 | −2.11 · 39d | −0.244R · beats 0% | −0.353R |
| All | 1,854 | −0.222R | −0.142R | −0.365R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 9.9 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 FirstSessionOfMonthLaggardInflowFailureShort:
name = "first_session_of_month_laggard_inflow_failure_short"
description = "Short a sub-200/sub-20 SMA laggard that closes red in the first 3 trading days of a month (failed inflow bid)."
def __init__(self, max_day_of_month: int = 3, stop_atr_mult: float = 1.5,
target_atr_mult: float = 2.5, atr_period: int = 14,
min_rr: float = 1.6) -> None:
self._max_day = max_day_of_month
self._stop_mult = Decimal(str(stop_atr_mult))
self._target_mult = Decimal(str(target_atr_mult))
self._atr_period = atr_period
self._min_rr = Decimal(str(min_rr))
def _trading_day_of_month(self, bars: list[Bar]) -> int:
cur = bars[-1].timestamp
n = 1
i = len(bars) - 2
while i >= 0:
ts = bars[i].timestamp
if ts.year == cur.year and ts.month == cur.month:
n += 1
i -= 1
if n > self._max_day:
break
else:
break
return n
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < 220:
return None
current = bars[-1]
day_n = self._trading_day_of_month(bars)
if day_n > self._max_day:
return None
# No inflow bid: red candle
if current.close >= current.open:
return None
closes = [b.close for b in bars]
sma200 = sma(closes, 200)
sma20 = sma(closes, 20)
if sma200 is None or sma20 is None:
return None
sma200_d = Decimal(str(sma200))
sma20_d = Decimal(str(sma20))
if current.close >= sma200_d or current.close >= sma20_d:
return None
atr_val = atr(bars, self._atr_period)
if atr_val is None or atr_val <= 0:
return None
atr_d = Decimal(str(atr_val))
entry = current.close
stop = entry + self._stop_mult * atr_d
target = entry - self._target_mult * atr_d
if target <= 0:
return None
risk = stop - entry
reward = entry - target
if risk <= 0 or reward <= 0:
return None
rr = reward / risk
if rr < self._min_rr:
return None
# --- signal strength ---
# 1) Depth below 200 SMA (laggard severity), up to 30
depth = float((sma200_d - entry) / sma200_d)
depth_score = min(30, max(0, int(depth * 200)))
# 2) Decisiveness of the red body vs ATR + close near low, up to 40
body = float((current.open - current.close) / atr_d)
body_score = min(20, max(0, int(body * 25)))
rng = current.high - current.low
if rng > 0:
close_pos = float((current.high - current.close) / rng)
else:
close_pos = 0.5
close_score = min(20, max(0, int(close_pos * 20)))
# 3) Volume vs 20-day average (selling into inflow window), up to 20
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(20, max(0, int((vol_ratio - 0.8) * 25)))
# 4) Earlier in window = purer inflow failure, up to 10
day_score = max(0, 10 - (day_n - 1) * 4)
strength = max(0, min(100, depth_score + body_score + close_score + vol_score + day_score))
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=int(strength),
thesis=(f"Trading day {day_n} of the month: month-start inflow window, yet the stock closed red "
f"below both its 20-day and 200-day SMAs ({depth*100:.1f}% under the 200). "
f"Failing to bounce on inflow days shows absent demand. "
f"Stop is 1.5x ATR above entry; target is 2.5x ATR below."),
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.