Skip to content
The Casebook · An idea an AI invented

Short after a high-volume gap-down below the 200-day average

Entry short at latest close if open was at least 2% below prior close, volume at least 1.8x 20-day average, close is below the open (no intraday recovery), and close is below the 200-day SMA. Stop 1.2 ATR above entry. Target 2.5 ATR below entry.
Why the AI thought it might work

In downtrends, overnight gap-downs on elevated volume reflect institutions forced to cut risk (margin calls, redemptions) in names already below the 200-day average. Forced sellers work orders over several sessions, producing continuation after the gap. Constraint-driven selling, not pattern recognition, creates the follow-through.

VerdictTested Nov 22, 2026

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.091R a trade), but no market clears t > 2.95 by trade and by day.
Trades on the laggards
246

42 large US stocks, 15 years

Per trade, after costs
+0.091R

Before costs +0.181R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggards, 246 trades averaged +0.091R after costs, but the winners averaged −0.064R. Bull markets reached t 1.70 by trade and 1.82 by day, flat −1.80 and −1.01, bear 0.68 and 1.21, all short of the 2.95 bar, 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
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.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull129+0.287R1.701.82 · 123d−0.098R · beats 100%+0.325R
Flat65−0.348R−1.80−1.01 · 52d−0.147R · beats 5%−0.156R
Bear52+0.155R0.681.21 · 36d−0.268R · beats 100%−0.390R
All246+0.091R−0.147R−0.064R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 4.0 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 code
from decimal import Decimal

from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate


class VolumeConfirmedOvernightGapContinuationShort:
    name = "volume_confirmed_overnight_gap_continuation_short"
    description = "Gap-down >=2% on >=1.8x volume, red close, below 200-SMA: short continuation of forced selling"

    def __init__(self, gap_pct: float = 0.02, vol_mult: float = 1.8, sma_len: int = 200,
                 atr_len: int = 14, stop_atr_max: float = 1.2, stop_atr_min: float = 0.6,
                 stop_buffer_atr: float = 0.1, target_atr: float = 2.5) -> None:
        self._gap = gap_pct
        self._vol_mult = vol_mult
        self._sma_len = sma_len
        self._atr_len = atr_len
        self._stop_max = stop_atr_max
        self._stop_min = stop_atr_min
        self._buf = stop_buffer_atr
        self._tgt = target_atr

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < max(self._sma_len, 21) + 20:
            return None
        cur = bars[-1]
        prev = bars[-2]
        prev_close = Decimal(str(prev.close))
        o = Decimal(str(cur.open))
        c = Decimal(str(cur.close))
        h = Decimal(str(cur.high))
        l = Decimal(str(cur.low))
        if prev_close <= 0 or c <= 0:
            return None

        # Gap-down of at least gap_pct
        gap = (prev_close - o) / prev_close
        if gap < Decimal(str(self._gap)):
            return None
        # No intraday recovery
        if c >= o:
            return None

        # Volume confirmation
        vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(vols) / 20.0
        if avg_vol <= 0:
            return None
        vol_ratio = float(cur.volume) / avg_vol
        if vol_ratio < self._vol_mult:
            return None

        # Below 200-SMA
        closes = [float(b.close) for b in bars]
        sma_l = sma(closes, self._sma_len)
        if sma_l is None or float(c) >= sma_l:
            return None

        atr_val = atr(bars, self._atr_len)
        if atr_val is None or atr_val <= 0:
            return None
        a = Decimal(str(atr_val))

        entry = c
        # Structural stop: above the gap-day high (the failed intraday push), clamped to [0.6, 1.2] ATR
        struct_stop = h + Decimal(str(self._buf)) * a
        min_stop = entry + Decimal(str(self._stop_min)) * a
        max_stop = entry + Decimal(str(self._stop_max)) * a
        stop = max(struct_stop, min_stop)
        stop = min(stop, max_stop)
        target = entry - Decimal(str(self._tgt)) * a
        if target <= 0:
            return None
        risk = stop - entry
        reward = entry - target
        if risk <= 0 or reward <= 0:
            return None
        rr = reward / risk
        if rr < Decimal("1.5"):
            return None

        # Strength: volume (0-35), gap size (0-25), close weakness (0-20), trend depth (0-20)
        vol_score = min(35, max(0, int((vol_ratio - self._vol_mult) / 2.0 * 35)))
        gap_score = min(25, max(0, int((float(gap) - self._gap) / 0.06 * 25)))
        rng = h - l
        if rng > 0:
            close_pos = float((h - c) / rng)
        else:
            close_pos = 0.5
        close_score = min(20, max(0, int(close_pos * 20)))
        depth = (sma_l - float(c)) / sma_l
        trend_score = min(20, max(0, int(depth / 0.20 * 20)))
        strength = max(0, min(100, vol_score + gap_score + close_score + trend_score))

        return Candidate(
            ticker=ticker,
            side="sell",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=(f"Gapped down {float(gap)*100:.1f}% on {vol_ratio:.1f}x avg volume, closed below open "
                    f"and below the 200-SMA; forced institutional selling should continue. Stop above the gap-day high."),
            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.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Short after a high-volume gap-down below the 200-day average: Indistinguishable from luck · EdgeProven