Skip to content
The Casebook · An idea an AI invented

Six down-bodied days, close near the low, 1.8/2.5 ATR exit

Last 6 bars all closed below their open, cumulative close-to-close return over those 6 bars <= -8%, and today's close is within 15% of the range above the day's low. Long at close. Stop = entry - 1.8*ATR(14). Target = entry + 2.5*ATR(14).
Why the AI thought it might work

Overnight returns driven by order-imbalance and retail pre-market flow tend to overshoot and revert intraday when persistent negative. After five consecutive days where the close is below the open (intraday selling) but price has not gapped down, sellers are overextended; the contrarian close-to-close buyers absorb.

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

42 large US stocks, 15 years

Per trade, after costs
+0.210R

Before costs +0.276R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggards it averaged 0.210R a trade after costs over 102 trades; winners showed 0.177R. No market cleared the t of 2.95 bar: bull t by day was 0.73, flat 0.12, bear 0.97. The positive average is therefore not separable from chance.

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
Bull49+0.176R0.890.73 · 46d−0.087R · beats 100%+0.044R
Flat31+0.060R0.260.12 · 25d+0.029R · beats 50%−0.189R
Bear22+0.497R1.890.97 · 17d+0.096R · beats 100%+0.747R
All102+0.210R−0.012R+0.177R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 6.4 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 ExtendedOvernightGapRunExhaustionLong:
    name = "extended_overnight_gap_run_exhaustion_long"
    description = "Long at close after 6 red-bodied days, >=8% drop driven by intraday selling, closing near the low"

    def __init__(self, streak: int = 6, min_drop: float = 0.08, close_pos_max: float = 0.15, min_intraday_share: float = 0.5, stop_atr: float = 1.8, target_atr: float = 2.75, atr_period: int = 14, min_bars: int = 60) -> None:
        self._streak = streak
        self._min_drop = min_drop
        self._close_pos_max = close_pos_max
        self._min_intraday_share = min_intraday_share
        self._stop_atr = stop_atr
        self._target_atr = target_atr
        self._atr_period = atr_period
        self._min_bars = min_bars

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        n = self._streak
        if len(bars) < max(self._min_bars, n + 22):
            return None
        window = bars[-n:]
        cur = bars[-1]
        for b in window:
            if not (b.close < b.open):
                return None
        base_close = bars[-(n + 1)].close
        if base_close <= 0:
            return None
        drop = float((cur.close - base_close) / base_close)
        if drop > -self._min_drop:
            return None
        rng = cur.high - cur.low
        if rng <= 0:
            return None
        close_pos = float((cur.close - cur.low) / rng)
        if close_pos > self._close_pos_max:
            return None
        total_move = float(base_close - cur.close)
        intraday_move = float(sum((b.open - b.close) for b in window))
        if total_move <= 0:
            return None
        intraday_share = intraday_move / total_move
        if intraday_share < self._min_intraday_share:
            return None

        atr_val = atr(bars, self._atr_period)
        if atr_val is None or float(atr_val) <= 0:
            return None
        atr_dec = Decimal(str(float(atr_val)))
        entry = cur.close
        stop = entry - Decimal(str(self._stop_atr)) * atr_dec
        target = entry + Decimal(str(self._target_atr)) * atr_dec
        if stop <= 0 or not (stop < entry < target):
            return None
        risk = entry - stop
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None

        prior = bars[-21:-1]
        avg_vol = sum(float(b.volume) for b in prior) / max(len(prior), 1)
        vol_ratio = float(cur.volume) / max(avg_vol, 1.0)
        vol_score = min(30, max(0, int((vol_ratio - 0.8) * 25)))
        depth_score = min(30, max(0, int((-drop - self._min_drop) * 300)))
        close_score = min(20, max(0, int((1.0 - close_pos / self._close_pos_max) * 20)))
        share_score = min(20, max(0, int((min(intraday_share, 1.5) - self._min_intraday_share) * 20)))
        strength = max(0, min(100, vol_score + depth_score + close_score + share_score))

        thesis = (
            f"{n} straight closes below the open, {drop*100:.1f}% close-to-close over the streak, "
            f"{min(intraday_share,9.99)*100:.0f}% of the drop from intraday selling rather than gaps, "
            f"close at {close_pos*100:.0f}% of today's range. Seller exhaustion is expected to trigger a reflex bounce; "
            f"stop {self._stop_atr} ATR, target {self._target_atr} 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
Six down-bodied days, close near the low, 1.8/2.5 ATR exit: Indistinguishable from luck · EdgeProven