Skip to content
The Casebook · An idea an AI invented

Buy after a 5-day drop of 8%+ once daily ranges narrow

Entry at latest close if the prior 5-day return was below -8%, the last 3 sessions all have ranges smaller than the average range of the prior 10 sessions, and today's close is above the 3-day low. Stop below the 5-day low minus 0.3 ATR. Target 2 ATR above entry.
Why the AI thought it might work

After a week of liquidation selling, the following week's range contraction signals forced sellers are exhausted while liquidity providers rebuild inventory over several days at stable prices. Market makers who absorbed forced flow now unwind inventory into modest strength, giving a slow upward drift in a single name's bars.

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

42 large US stocks, 15 years

Per trade, after costs
+0.097R

Before costs +0.201R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On 640 laggard trades the result was +0.097R after costs (+0.201R before), with winners at +0.404R. By trade, t was 0.66 in bull, 1.01 in flat and 0.55 in bear markets; by day, 0.77, 1.65 and 0.51. None reaches the 2.95 bar, so the result cannot be told apart 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
Bull376+0.066R0.660.77 · 338d−0.069R · beats 95%+0.291R
Flat140+0.179R1.011.65 · 118d−0.015R · beats 95%+0.057R
Bear124+0.100R0.550.51 · 93d+0.059R · beats 70%+0.858R
All640+0.097R−0.033R+0.404R

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.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 InsideWeekAfterCapitulationLong:
    name = "inside_week_after_capitulation_long"
    description = "Capitulation week (>8% 5-day drop) followed by 3 quiet sessions vs pre-drop range; long the stabilization drift"

    def __init__(self, drop_pct: float = -0.08, quiet_days: int = 3, cap_days: int = 5,
                 baseline_len: int = 10, range_mult: float = 1.25,
                 stop_atr_mult: float = 0.3, target_atr_mult: float = 2.0) -> None:
        self._drop = drop_pct
        self._q = quiet_days
        self._c = cap_days
        self._b = baseline_len
        self._rm = range_mult
        self._sm = stop_atr_mult
        self._tm = target_atr_mult

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        q, c, b = self._q, self._c, self._b
        need = q + c + b + 25
        if len(bars) < need:
            return None
        cur = bars[-1]
        closes = [float(x.close) for x in bars]
        # Capitulation window: c sessions ending just before the quiet window
        cap_end = closes[-(q + 1)]
        cap_start = closes[-(q + c + 1)]
        if cap_start <= 0:
            return None
        ret = cap_end / cap_start - 1.0
        if ret >= self._drop:
            return None
        # Pre-capitulation baseline: b sessions before the capitulation window
        base = bars[-(q + c + b):-(q + c)]
        if len(base) != b:
            return None
        base_rng = sum(float(x.high - x.low) for x in base) / b
        if base_rng <= 0:
            return None
        quiet = bars[-q:]
        q_rngs = [float(x.high - x.low) for x in quiet]
        lim = base_rng * self._rm
        if any(r >= lim for r in q_rngs):
            return None
        low3 = min(float(x.low) for x in quiet)
        high3 = max(float(x.high) for x in quiet)
        close = float(cur.close)
        if close <= low3:
            return None
        atr_val = atr(bars, 14)
        if atr_val is None or float(atr_val) <= 0:
            return None
        a = float(atr_val)
        low5 = min(float(x.low) for x in bars[-5:])
        entry = cur.close
        stop = Decimal(str(round(low5 - self._sm * a, 4)))
        target = Decimal(str(round(close + self._tm * a, 4)))
        if not (stop < entry < target):
            return None
        risk = entry - stop
        if risk <= 0:
            return None
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None
        # Strength components
        depth_score = min(30, max(0, int((-ret - 0.08) / 0.12 * 30)))
        tight = (sum(q_rngs) / q) / base_rng
        tight_score = min(30, max(0, int((self._rm - tight) / self._rm * 30)))
        span = max(high3 - low3, 1e-6)
        pos_score = min(20, max(0, int((close - low3) / span * 20)))
        cap_vol = sum(float(x.volume) for x in bars[-(q + c):-q]) / c
        q_vol = sum(float(x.volume) for x in quiet) / q
        vol_score = 0
        if cap_vol > 0:
            vol_score = min(20, max(0, int((1.0 - q_vol / cap_vol) * 40)))
        strength = max(0, min(100, depth_score + tight_score + pos_score + vol_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"Capitulation week fell {ret*100:.1f}%; last {q} sessions contracted to "
                    f"{tight:.2f}x the pre-drop range, suggesting forced sellers are exhausted "
                    f"and dealers will unwind inventory into a slow drift higher."),
        )

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
Buy after a 5-day drop of 8%+ once daily ranges narrow: Indistinguishable from luck · EdgeProven