Skip to content
The Casebook · An idea an AI invented

Gap-down reversal day above the 100-day average

Entry at latest close if the open was below the prior close by at least 0.7*ATR(14), the low stayed above the prior bar's low minus 0.2*ATR(14), close is above open and in the upper 40% of the day's range, and close is above the 100-day SMA. Stop = latest low minus 0.2*ATR(14). Target = entry + 2.0*ATR(14).
Why the AI thought it might work

A gap-down open that holds above the prior bar's low and closes green in a bull regime shows overnight sellers were absorbed by intraday buyers who treat the gap as a discount. Panic-selling overnight positions are forced by news-driven risk limits, and the intraday reversal marks that supply ending. Visible from open, low, close.

VerdictTested Nov 22, 2026

Loses money

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

  • −0.301R a trade after costs on the laggard stocks.
Trades on the laggards
45

42 large US stocks, 15 years

Per trade, after costs
−0.301R

Before costs −0.148R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggard stocks the idea averaged −0.301R a trade after costs over 45 trades, against −0.148R before costs. The 20 winners showed 0.164R. In bull markets it came to −0.31R (t −1.16), and its share of random-date draws beaten was 25%, which is why the verdict reads as losing money.

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
Bull37−0.310R−1.16−1.09 · 35d−0.172R · beats 25%+0.239R
Flat7−0.136R−0.160.05 · 6d−0.168R · beats 70%−0.065R
Bear1−1.122R—— · 1d−0.011R · beats 35%−0.114R
All45−0.301R−0.168R+0.164R

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


class GapDownAbsorptionReversalLong:
    name = "gap_down_absorption_reversal_long"
    description = "Gap down >=0.7 ATR that holds the prior low and closes green in upper 40% of range above the 100-SMA"

    def __init__(self, gap_atr: float = 0.7, low_buffer_atr: float = 0.2, close_pos_min: float = 0.6,
                 stop_buffer_atr: float = 0.2, target_atr: float = 2.0, sma_len: int = 100,
                 atr_len: int = 14, min_bars: int = 120) -> None:
        self._gap_atr = gap_atr
        self._low_buf = low_buffer_atr
        self._close_pos_min = close_pos_min
        self._stop_buf = stop_buffer_atr
        self._target_atr = target_atr
        self._sma_len = sma_len
        self._atr_len = atr_len
        self._min_bars = min_bars

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < max(self._min_bars, self._sma_len + 2):
            return None
        cur = bars[-1]
        prev = bars[-2]
        atr_val = atr(bars, self._atr_len)
        if atr_val is None or atr_val <= 0:
            return None
        a = Decimal(str(atr_val))
        o = Decimal(str(cur.open))
        h = Decimal(str(cur.high))
        l = Decimal(str(cur.low))
        c = Decimal(str(cur.close))
        pc = Decimal(str(prev.close))
        pl = Decimal(str(prev.low))

        gap = pc - o
        if gap < Decimal(str(self._gap_atr)) * a:
            return None
        if l < pl - Decimal(str(self._low_buf)) * a:
            return None
        if c <= o:
            return None
        rng = h - l
        if rng <= 0:
            return None
        close_pos = (c - l) / rng
        if close_pos < Decimal(str(self._close_pos_min)):
            return None
        sma_val = sma([b.close for b in bars], self._sma_len)
        if sma_val is None:
            return None
        sma_d = Decimal(str(sma_val))
        if c <= sma_d:
            return None

        entry = cur.close
        stop = l - Decimal(str(self._stop_buf)) * a
        target = c + Decimal(str(self._target_atr)) * a
        risk = c - stop
        if risk <= 0 or stop <= 0:
            return None
        rr = (target - c) / risk
        if rr < Decimal("1.5"):
            return None

        # strength components
        gap_ratio = float(gap / a)
        gap_score = min(30, max(0, int((gap_ratio - self._gap_atr) * 30 + 10)))
        cp = float(close_pos)
        close_score = min(25, max(0, int((cp - self._close_pos_min) / (1 - self._close_pos_min + 1e-9) * 25)))
        prior_vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(prior_vols) / max(len(prior_vols), 1)
        vr = float(cur.volume) / max(avg_vol, 1.0)
        vol_score = min(25, max(0, int((vr - 0.8) * 20)))
        hold = float((l - pl) / a)
        hold_score = min(20, max(0, int((hold + self._low_buf) * 20)))
        strength = max(0, min(100, gap_score + close_score + vol_score + hold_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"Gapped down {gap_ratio:.2f} ATR but held the prior low and closed green in the top "
                    f"{(1 - cp) * 100:.0f}% of range above the {self._sma_len}-SMA: overnight supply absorbed "
                    f"by intraday buyers; target +{self._target_atr} ATR."),
        )

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 reversal day above the 100-day average: Loses money · EdgeProven