Buy early-quarter laggards after a 63-day drop over 15%
Fire on sessions 2-4 of a new quarter if the prior 63-day return is below -15% and the close is above the prior 3-day low. Enter long at close. Stop 2x ATR(14) below; target 3x ATR above.
Managers dump the worst-performing names before quarter-end to avoid disclosing them. These sales end with the quarter, and heavily-shorted-by-momentum losers see relief as selling stops. The stock-specific filter picks laggards that are deeply down on the quarter.
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.259R a trade), but no market clears t > 2.95 by trade and by day.
42 large US stocks, 15 years
Before costs +0.331R
By trade and by day, sized to 362 rules
What the numbers say
On laggards the rule averaged +0.259R a trade over 105 trades after costs. Bear markets gave +0.638R (t 3.22 by trade, 1.71 by day, 8 distinct days), flat markets −0.239R, bull markets +0.240R. No market reached the t > 2.95 bar by both trade and day, 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 | 36 | +0.240R | 0.99 | 0.95 · 30d | −0.079R · beats 100% | +0.101R |
| Flat | 29 | −0.239R | −0.96 | −1.30 · 14d | +0.068R · beats 20% | −0.434R |
| Bear | 40 | +0.638R | 3.22 | 1.71 · 8d | +0.147R · beats 100% | +1.049R |
| All | 105 | +0.259R | +0.048R | +0.496R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.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 TurnOfQuarterLaggardReliefLong:
name = "turn_of_quarter_laggard_relief_long"
description = "First qualifying session (2-4) of a new quarter: deep 63-day laggard closing above its prior 3-day low, long at close"
def __init__(self, ret_lookback: int = 63, ret_threshold: float = -0.15, low_lookback: int = 3,
first_session: int = 2, last_session: int = 4, atr_period: int = 14,
stop_atr: float = 2.0, min_target_atr: float = 3.1, max_target_atr: float = 4.5,
high_lookback: int = 20) -> None:
self._ret_lookback = ret_lookback
self._ret_threshold = ret_threshold
self._low_lookback = low_lookback
self._first_session = first_session
self._last_session = last_session
self._atr_period = atr_period
self._stop_atr = stop_atr
self._min_t = min_target_atr
self._max_t = max_target_atr
self._high_lookback = high_lookback
@staticmethod
def _qkey(b):
ts = b.timestamp
return (ts.year, (ts.month - 1) // 3)
def _qualifies(self, bars, j):
if j - self._ret_lookback < 0 or j - self._low_lookback < 0:
return False
base = float(bars[j - self._ret_lookback].close)
if base <= 0:
return False
ret = float(bars[j].close) / base - 1.0
if ret >= self._ret_threshold:
return False
prior_low = min(b.low for b in bars[j - self._low_lookback:j])
return bars[j].close > prior_low
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._ret_lookback, self._high_lookback, self._atr_period) + 10
if len(bars) < need:
return None
last = len(bars) - 1
key = self._qkey(bars[last])
session = 0
i = last
while i >= 0 and self._qkey(bars[i]) == key:
session += 1
i -= 1
if i < 0:
return None
if session < self._first_session or session > self._last_session:
return None
if not self._qualifies(bars, last):
return None
# Only the first qualifying session per quarter (earlier bars only, no look-ahead)
for s in range(self._first_session, session):
j = last - (session - s)
if self._qualifies(bars, j):
return None
atr_val = atr(bars, self._atr_period)
if atr_val is None or atr_val <= 0:
return None
a = Decimal(str(atr_val))
current = bars[-1]
entry = current.close
stop = entry - Decimal(str(self._stop_atr)) * a
if stop <= 0:
return None
# Target anchored to the pre-dump structure (prior 20-day high), clamped in ATR units
prior_high = max(b.high for b in bars[-(self._high_lookback + 1):-1])
t_mult = (prior_high - entry) / a
t_mult = max(Decimal(str(self._min_t)), min(Decimal(str(self._max_t)), t_mult))
target = entry + t_mult * a
risk = entry - stop
if risk <= 0 or target <= entry:
return None
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
# Strength: depth of laggard, close location, volume, rebound off the 3-day low
ret = float(entry) / float(bars[-1 - self._ret_lookback].close) - 1.0
depth_score = min(35, max(0, int((-ret - 0.15) * 140)))
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)))
vols = [float(b.volume) for b in bars[-21:-1]]
avg_vol = sum(vols) / len(vols) if vols else 0.0
vol_ratio = float(current.volume) / avg_vol if avg_vol > 0 else 1.0
vol_score = min(20, max(0, int((vol_ratio - 0.8) * 25)))
prior_low = min(b.low for b in bars[-1 - self._low_lookback:-1])
rebound = float((entry - prior_low) / a)
rebound_score = min(20, max(0, int(rebound * 15)))
strength = max(0, min(100, depth_score + close_score + vol_score + rebound_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-turn session {session}: {ret:.1%} 63-day laggard is holding above its prior "
f"3-day low after quarter-end selling stopped; expecting a relief bounce. "
f"Stop at 2.0 ATR, target {float(t_mult):.2f} ATR toward the prior 20-day high."),
)
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.