Short after a big gap-down that stays below its midpoint
Find a bar within the last 8 sessions with gap down >4% and volume >3x 50-day average. Since then, every close must be below that bar's midpoint ((high+low)/2) and latest close within 3% of the lowest close since. Enter short at close. Stop = gap bar high. Target = entry - 3.0*ATR(14).
Negative earnings surprises are under-reacted to: analysts revise slowly and institutions exit gradually because of position size and liquidity limits, so a gap-down on huge volume that fails to retrace more than half the gap over several sessions keeps drifting lower.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.134R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.044R
By trade and by day, sized to 362 rules
What the numbers say
On the 22 laggards, 277 trades averaged −0.134R after costs and −0.044R before costs; the 20 winners scored −0.149R. Flat markets (−0.186R) and bear markets (−0.261R) also lost, and bull markets averaged −0.098R. No market type showed a positive average, so the verdict is that the idea loses money.
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 | 190 | −0.098R | −0.99 | −0.95 · 186d | −0.159R · beats 65% | −0.010R |
| Flat | 56 | −0.186R | −1.17 | −0.93 · 52d | −0.024R · beats 15% | −0.646R |
| Bear | 31 | −0.261R | −1.04 | −1.95 · 26d | −0.398R · beats 75% | +0.261R |
| All | 277 | −0.134R | −0.158R | −0.149R |
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.8 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 PostEarningsGapDownDriftShort:
name = "post_earnings_gap_down_drift_short"
description = "Short continuation after a high-volume >4% gap-down that fails to reclaim the gap bar midpoint and sits near its post-gap low"
def __init__(
self,
lookback_sessions: int = 8,
gap_pct: float = 0.04,
vol_mult: float = 3.0,
vol_avg_len: int = 50,
near_low_pct: float = 0.03,
atr_len: int = 14,
target_atr_mult: float = 3.0,
min_rr: float = 1.5,
min_bars: int = 70,
) -> None:
self._lookback = lookback_sessions
self._gap_pct = gap_pct
self._vol_mult = vol_mult
self._vol_avg_len = vol_avg_len
self._near_low_pct = near_low_pct
self._atr_len = atr_len
self._target_atr_mult = target_atr_mult
# Platform floor: the orchestrator drops anything below 1.5 anyway.
self._min_rr = max(1.5, min_rr)
self._min_bars = min_bars
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = len(bars)
need = max(self._min_bars, self._vol_avg_len + self._lookback + self._atr_len + 3)
if n < need:
return None
last = n - 1
current = bars[last]
# 1) Most recent qualifying gap-down bar within lookback (at least one session ago)
gap_idx = None
gap_size = 0.0
vol_ratio = 0.0
for k in range(1, self._lookback + 1):
i = last - k
if i - self._vol_avg_len < 1:
break
prev = bars[i - 1]
b = bars[i]
prev_close = float(prev.close)
if prev_close <= 0:
continue
g = (prev_close - float(b.open)) / prev_close
if g <= self._gap_pct:
continue
window = bars[i - self._vol_avg_len:i]
avg_v = sum(float(x.volume) for x in window) / self._vol_avg_len
if avg_v <= 0:
continue
vr = float(b.volume) / avg_v
if vr <= self._vol_mult:
continue
gap_idx = i
gap_size = g
vol_ratio = vr
break
if gap_idx is None:
return None
gap_bar = bars[gap_idx]
midpoint = (gap_bar.high + gap_bar.low) / Decimal(2)
# 2) Every close since the gap bar stays below the gap bar midpoint
for j in range(gap_idx + 1, n):
if bars[j].close >= midpoint:
return None
# 3) Latest close within near_low_pct of the lowest close since the gap bar
lowest_close = min(bars[j].close for j in range(gap_idx, n))
if lowest_close <= 0:
return None
if current.close > lowest_close * Decimal(str(1.0 + self._near_low_pct)):
return None
# 4) Levels
atr_val = atr(bars, self._atr_len)
if atr_val is None or atr_val <= 0:
return None
atr_dec = Decimal(str(atr_val))
entry = current.close
stop = gap_bar.high
if stop <= entry:
return None
target = entry - Decimal(str(self._target_atr_mult)) * atr_dec
if target <= 0 or target >= entry:
return None
risk = stop - entry
if risk <= 0:
return None
rr = (entry - target) / risk
if rr < Decimal(str(self._min_rr)):
return None
# 5) Diagnostics for the critic's concerns (used in scoring, not as filters)
pre_atr = atr(bars[:gap_idx], self._atr_len)
atr_inflation = 1.0
if pre_atr is not None and pre_atr > 0:
atr_inflation = float(atr_val) / float(pre_atr)
drift_atr = float(gap_bar.close - entry) / float(atr_val)
# 6) signal_strength
vol_score = min(30, max(0, int((vol_ratio - self._vol_mult) * 6 + 10)))
gap_score = min(20, max(0, int((gap_size - self._gap_pct) * 250 + 5)))
rng = float(gap_bar.high - gap_bar.low)
hold_score = 0
if rng > 0:
depth = (float(midpoint) - float(entry)) / rng
hold_score = min(20, max(0, int(depth * 40)))
if drift_atr <= 1.0:
ext_score = 15
elif drift_atr <= 2.0:
ext_score = 10
elif drift_atr <= 3.0:
ext_score = 4
else:
ext_score = 0
if atr_inflation <= 1.3:
infl_score = 15
elif atr_inflation <= 1.7:
infl_score = 8
else:
infl_score = 2
strength = max(0, min(100, vol_score + gap_score + hold_score + ext_score + infl_score))
thesis = (
f"Gap-down {gap_size * 100:.1f}% on {vol_ratio:.1f}x 50d volume "
f"{last - gap_idx} sessions ago; every close since has stayed below the gap-bar midpoint "
f"and price sits near its post-gap low, so post-earnings drift from slow analyst revisions "
f"and gradual institutional exits should continue. Stop at gap-bar high, target 3xATR. "
f"Drift since gap {drift_atr:.1f} ATR; ATR inflation vs pre-gap {atr_inflation:.2f}x."
)
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=thesis,
)
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.