Skip to content
The Casebook · An idea an AI invented

Gap-down, lower low, then close above prior day's high

Entry at latest close if two sessions ago had a gap down of at least 3%, yesterday traded below the prior day's low, and today's close is above yesterday's high. Stop below the 3-day low minus 0.2 ATR. Target 2.2 ATR above.
Why the AI thought it might work

After an overnight gap down that was not filled, gap-down day one is information while day two weakness is often forced or momentum selling from stops placed below the first-day low. Once stops are cleared and the stock closes back above the first day's close, remaining sellers are exhausted, and buyers who waited for stops to clear step in.

VerdictTested Nov 22, 2026

Loses money

After costs it lost money on the stocks that decide the verdict.

  • −0.098R a trade after costs on the laggard stocks.
Trades on the laggards
67

42 large US stocks, 15 years

Per trade, after costs
−0.098R

Before costs −0.036R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggard stocks this long setup averaged −0.098R per trade after costs over 67 trades, against 0.079R on the winners. It was 0.066R in bull and 0.227R in flat markets, but −0.593R in bear markets (t −2.51), beating 0.0% of random-date draws there. The bear-market loss drives the verdict.

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
Bull23+0.066R0.24−0.01 · 22d+0.002R · beats 70%+0.024R
Flat22+0.227R0.79−0.47 · 17d−0.017R · beats 85%+0.556R
Bear22−0.593R−2.51−0.82 · 14d+0.041R · beats 0%−0.324R
All67−0.098R+0.009R+0.079R

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
from scanners.base import Candidate


class GapDownUndercutReclaimLong:
    name = "gap_down_undercut_reclaim_long"
    description = "Unfilled >=3% gap down, next-day undercut of gap-day low, then close above that day's high"

    def __init__(self, min_gap_pct: float = 0.03, stop_atr_buffer: float = 0.2,
                 target_atr_mult: float = 2.2, max_target_atr_mult: float = 3.5,
                 min_rr: float = 1.55, atr_period: int = 14, min_bars: int = 60) -> None:
        self._min_gap = Decimal(str(min_gap_pct))
        self._buf = Decimal(str(stop_atr_buffer))
        self._tgt = Decimal(str(target_atr_mult))
        self._max_tgt = Decimal(str(max_target_atr_mult))
        self._min_rr = Decimal(str(min_rr))
        self._atr_period = atr_period
        self._min_bars = min_bars

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._min_bars:
            return None
        pre = bars[-4]
        d1 = bars[-3]
        d2 = bars[-2]
        cur = bars[-1]
        if pre.close <= 0:
            return None
        gap = (pre.close - d1.open) / pre.close
        if gap < self._min_gap:
            return None
        if d1.high >= pre.close:
            return None
        if d2.low >= d1.low:
            return None
        if cur.close <= d2.high:
            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))
        entry = cur.close
        low3 = min(d1.low, d2.low, cur.low)
        stop = low3 - self._buf * a
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None
        target = entry + self._tgt * a
        rr = (target - entry) / risk
        extended = False
        if rr < self._min_rr:
            needed = self._min_rr * risk
            if needed > self._max_tgt * a:
                return None
            target = entry + needed
            rr = (target - entry) / risk
            extended = True
        if not (stop < entry < target):
            return None

        vols = [float(b.volume) for b in bars[-24:-4]]
        avg_vol = sum(vols) / len(vols) if vols else 0.0
        vol_ratio = float(cur.volume) / avg_vol if avg_vol > 0 else 1.0
        vol_score = min(30, max(0, int((vol_ratio - 0.8) * 30)))
        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)))
        reclaim_score = 0
        if cur.close > d1.close:
            reclaim_score = 15 + min(10, max(0, int(float((cur.close - d1.close) / a) * 10)))
        gap_score = min(20, max(0, int((float(gap) - 0.03) * 400)))
        strength = max(0, min(100, vol_score + close_score + reclaim_score + gap_score))

        thesis = (
            f"{float(gap) * 100:.1f}% unfilled gap down two sessions ago; yesterday's undercut of the gap-day low "
            f"likely flushed stops, and today closed above yesterday's high"
            + (" and above the gap-day close" if cur.close > d1.close else "")
            + ". Forced sellers look exhausted; expect buyers who waited for the flush to lift price. "
            + ("Target extended to the 1.55R floor (capped at 3.5 ATR)." if extended else "Target 2.2 ATR.")
        )
        return Candidate(
            ticker=ticker,
            side="buy",
            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.

Have an idea of your own?

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

Run the Gauntlet
Gap-down, lower low, then close above prior day's high: Loses money · EdgeProven