Skip to content
The Casebook · An idea an AI invented

Buying a held gap-down on heavy volume, ATR stop and target

Entry at latest close if open is at least 1.5x ATR(14) below prior close, close is above the open and above the day's midpoint, and volume is at least 1.5x its 20-day average. Stop = day's low minus 0.25x ATR(14). Target = entry plus 1.7x ATR(14) or the prior close, whichever is lower.
Why the AI thought it might work

A gap-down that opens low but is held (close above the open, above the gap-day midpoint) on heavy volume shows forced sellers executed at the open were absorbed by informed buyers; the opening-auction overshoot reverts in following sessions. The overnight-versus-intraday asymmetry shows in open, close and prior close.

VerdictTested Nov 22, 2026

Too rare to judge

Too few trades in 15 years to tell anything either way.

  • 14 trades on the laggard stocks in 15 years; 30 are needed to judge.
Trades on the laggards
14

42 large US stocks, 15 years

Per trade, after costs
−0.190R

Before costs −0.050R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

Only 14 trades appeared on the laggard stocks in 15 years, short of the 30 needed to judge. They averaged −0.19R per trade after costs, against −0.602 on the winners. Bull markets showed 0.212R over 10 trades (t 0.43); flat markets showed −1.194R over 4 trades; bear markets had none. That is too little to separate skill 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.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull10+0.212R0.430.43 · 10d+0.081R · beats 65%−0.368R
Flat4−1.194R−19.05−19.05 · 4d−0.209R · beats 0%−1.157R
Bear0————−1.055R
All14−0.190R−0.002R−0.602R

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


class GapDownAbsorptionReversalLong:
    name = "gap_down_absorption_reversal_long"
    description = "Gap-down >=1.5 ATR held intraday (close > open, close > midpoint) on >=1.5x volume; long for reversion toward prior close."

    def __init__(self, gap_atr_mult: float = 1.5, vol_mult: float = 1.5, stop_atr_buffer: float = 0.25, target_atr_mult: float = 1.7, atr_period: int = 14, vol_lookback: int = 20, min_rr: float = 1.5, min_bars: int = 60) -> None:
        self._gap = Decimal(str(gap_atr_mult))
        self._vol_mult = vol_mult
        self._buf = Decimal(str(stop_atr_buffer))
        self._tgt = Decimal(str(target_atr_mult))
        self._atr_period = atr_period
        self._vol_lb = vol_lookback
        # Platform floor: the orchestrator discards anything with R:R <= 1.5,
        # so emitting lower-R:R candidates would never produce trades.
        self._min_rr = Decimal(str(min_rr))
        self._min_bars = max(min_bars, atr_period + vol_lookback + 2)

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._min_bars:
            return None
        cur = bars[-1]
        prev = bars[-2]

        # Pre-event ATR (through yesterday) so the gap day's own range does not inflate the yardstick.
        atr_val = atr(bars[:-1], self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        a = Decimal(str(atr_val))

        prior_close = prev.close
        gap = prior_close - cur.open
        if gap < self._gap * a:
            return None
        if cur.close <= cur.open:
            return None
        rng = cur.high - cur.low
        if rng <= 0:
            return None
        mid = (cur.high + cur.low) / 2
        if cur.close <= mid:
            return None

        vols = [float(b.volume) for b in bars[-(self._vol_lb + 1):-1]]
        avg_vol = sum(vols) / len(vols) if vols else 0.0
        if avg_vol <= 0:
            return None
        vol_ratio = float(cur.volume) / avg_vol
        if vol_ratio < self._vol_mult:
            return None

        entry = cur.close
        stop = cur.low - self._buf * a
        target = min(entry + self._tgt * a, prior_close)
        if not (stop < entry < target):
            return None
        risk = entry - stop
        if risk <= 0:
            return None
        rr = (target - entry) / risk
        if rr <= self._min_rr:
            return None

        # Strength components
        vol_score = min(30, max(0, int((vol_ratio - self._vol_mult) / 2.0 * 30)))
        close_pos = float((cur.close - cur.low) / rng)
        close_score = min(25, max(0, int((close_pos - 0.5) / 0.5 * 25)))
        reclaim = float((cur.close - cur.open) / gap)
        reclaim_score = min(25, max(0, int(reclaim * 50)))
        gap_atr = float(gap / a)
        gap_score = min(20, max(0, int((gap_atr - float(self._gap)) / 2.0 * 20)))
        strength = max(0, min(100, vol_score + close_score + reclaim_score + gap_score))

        thesis = (
            f"Gapped down {gap_atr:.1f} ATR at the open but closed above the open and the day's midpoint "
            f"(close in top {100 - int(close_pos * 100)}% of range, reclaimed {reclaim * 100:.0f}% of gap) "
            f"on {vol_ratio:.1f}x avg volume. Opening-auction selling looks absorbed. "
            f"Targeting reversion toward the prior close {prior_close}; stop under the gap-day low."
        )

        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=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.

Have an idea of your own?

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

Run the Gauntlet
Buying a held gap-down on heavy volume, ATR stop and target: Too rare to judge · EdgeProven