Oversold rebound in first week of a new quarter
Fire on trading days 1 through 5 of Jan, Apr, Jul or Oct (infer from dates). Require 60-bar return <= -12%, close within 8% of the 60-bar low, and today's close above the open. Enter long at the latest close; stop 2 x ATR(14) below; target 3.5 x ATR(14) above.
Fund managers cut losers before quarter-end to avoid showing them in disclosed holdings, then rebuy or let selling abate once the new quarter starts. Stocks that lost more than 12% over the prior 60 sessions and are near their 60-day lows were most subject to this window-dressing sell, so the removal of that supply during the first week of the new quarter creates a rebound conditional on the stock's own prior weakness.
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.355R a trade), but no market clears t > 2.95 by trade and by day.
42 large US stocks, 15 years
Before costs +0.432R
By trade and by day, sized to 362 rules
What the numbers say
On the laggards, 199 trades averaged +0.355R after costs (+0.432R before), and winners averaged +0.495R. The bull market reached t 2.51 by trade and 2.25 by day, flat 1.39 and 0.33, bear 2.46 and 1.19. None clears the 2.95 bar by both, with only 13 to 66 distinct days per market, 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 | 96 | +0.345R | 2.51 | 2.25 · 66d | +0.010R · beats 100% | +0.359R |
| Flat | 53 | +0.257R | 1.39 | 0.33 · 21d | −0.038R · beats 100% | +0.193R |
| Bear | 50 | +0.478R | 2.46 | 1.19 · 13d | +0.162R · beats 90% | +0.889R |
| All | 199 | +0.355R | +0.035R | +0.495R |
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.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 core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class QuarterStartLaggardMarkupLong:
name = "quarter_start_laggard_markup_long"
description = "First-week-of-quarter rebound in 60-day laggards near their lows after quarter-end window-dressing selling"
def __init__(self, lookback: int = 60, max_return: float = -0.12, near_low_pct: float = 0.08, max_quarter_day: int = 5, atr_period: int = 14, stop_atr: float = 2.0, target_atr: float = 3.5) -> None:
self._lookback = lookback
self._max_return = max_return
self._near_low_pct = near_low_pct
self._max_qday = max_quarter_day
self._atr_period = atr_period
self._stop_atr = stop_atr
self._target_atr = target_atr
@staticmethod
def _ts(b):
try:
return b.timestamp
except AttributeError:
return b.date
def _quarter_day(self, bars):
last = self._ts(bars[-1])
if last.month not in (1, 4, 7, 10):
return None
count = 0
idx = len(bars) - 1
while idx >= 0:
t = self._ts(bars[idx])
if t.month == last.month and t.year == last.year:
count += 1
idx -= 1
if count > self._max_qday:
return None
else:
break
if idx < 0:
return None
return count
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = self._lookback
if len(bars) < n + 25:
return None
qday = self._quarter_day(bars)
if qday is None or qday < 1 or qday > self._max_qday:
return None
cur = bars[-1]
if cur.close <= cur.open:
return None
base = bars[-(n + 1)].close
if base <= 0:
return None
ret = float(cur.close / base) - 1.0
if ret > self._max_return:
return None
window = bars[-n:]
low60 = min(b.low for b in window)
if low60 <= 0:
return None
dist_low = float(cur.close / low60) - 1.0
if dist_low > self._near_low_pct:
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_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
if rr < Decimal("1.5"):
return None
# Strength: drawdown depth, proximity to low, close strength, volume
depth_score = min(30, max(0, int((-ret - 0.12) / 0.18 * 30)))
prox_score = min(25, max(0, int((1.0 - dist_low / self._near_low_pct) * 25)))
rng = cur.high - cur.low
close_pos = float((cur.close - cur.low) / rng) if rng > 0 else 0.5
close_score = min(25, max(0, int(close_pos * 25)))
prior = bars[-21:-1]
avg_vol = sum(float(b.volume) for b in prior) / len(prior)
vr = float(cur.volume) / avg_vol if avg_vol > 0 else 1.0
vol_score = min(20, max(0, int((vr - 0.8) * 20)))
strength = max(0, min(100, depth_score + prox_score + close_score + vol_score))
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=strength,
thesis=(
f"Quarter day {qday}: down {ret*100:.1f}% over {n} bars and {dist_low*100:.1f}% above the {n}-bar low. "
"Quarter-end window-dressing supply should be gone, and today's up close (close above open) suggests the selling has eased."
),
)
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.