Skip to content
The Casebook · An idea an AI invented

Rebound after a 25% drop in 15 bars, ATR stop and target

Close is >= 25% below the max close of the last 15 bars, and today's close is above the prior day's high (stabilization). Long at close. Stop = entry - 2*ATR(14). Target = entry + 3*ATR(14).
Why the AI thought it might work

In bear regimes, mutual funds and hedge funds meeting redemptions sell their most liquid positions regardless of fundamentals, pushing mean-reverting dislocations in the most hit names. Liquidity providers earn a premium as the pressure abates. A stock down 25%+ in 15 days with a stabilizing close is typically at the pressure peak.

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

42 large US stocks, 15 years

Per trade, after costs
+0.087R

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 laggards the idea averaged 0.087R a trade after costs over 56 trades. No market came near the t > 2.95 bar: the best, flat, reached t 0.81, and bear markets, where the idea is meant to work, averaged −0.040R and beat only 20% of random-date draws. The small edge 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
Bull14+0.110R0.36−0.03 · 12d−0.057R · beats 65%+0.238R
Flat10+0.462R0.810.81 · 10d+0.134R · beats 75%−0.097R
Bear32−0.040R−0.230.37 · 12d+0.114R · beats 20%+0.502R
All56+0.087R+0.075R+0.346R

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 ExtremeDrawdownRedemptionLong:
    name = "extreme_drawdown_redemption_long"
    description = "Long after a 25%+ drawdown from the 15-bar max close followed by a close above the prior high (forced-redemption exhaustion)."

    def __init__(
        self,
        lookback: int = 15,
        drawdown_pct: float = 0.25,
        atr_period: int = 14,
        target_atr: float = 3.0,
        max_risk_atr: float = 1.95,
        min_risk_atr: float = 1.0,
        swing_lookback: int = 5,
        stop_buffer_atr: float = 0.25,
        min_bars: int = 60,
    ) -> None:
        self._lookback = lookback
        self._dd = drawdown_pct
        self._atr_period = atr_period
        self._target_atr = target_atr
        self._max_risk_atr = max_risk_atr
        self._min_risk_atr = min_risk_atr
        self._swing_lookback = swing_lookback
        self._buffer = stop_buffer_atr
        self._min_bars = min_bars

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._min_bars, self._lookback + self._atr_period + 2, 22)
        if len(bars) < need:
            return None
        cur = bars[-1]
        prev = bars[-2]
        window = bars[-self._lookback:]
        max_close = max(b.close for b in window)
        if max_close <= 0 or cur.close <= 0:
            return None
        dd = (max_close - cur.close) / max_close
        if dd < Decimal(str(self._dd)):
            return None
        # Stabilization: close above prior day's high
        if cur.close <= prev.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

        # Structural stop: recent swing low minus a small ATR buffer,
        # clamped to [min_risk_atr, max_risk_atr] ATR. max 1.95 ATR keeps
        # R:R >= ~1.54 vs the 3-ATR target, so no setup is silently gated.
        swing_low = min(b.low for b in bars[-self._swing_lookback:])
        raw_risk = entry - (swing_low - Decimal(str(self._buffer)) * a)
        lo = Decimal(str(self._min_risk_atr)) * a
        hi = Decimal(str(self._max_risk_atr)) * a
        risk = max(lo, min(hi, raw_risk))
        if risk <= 0:
            return None
        stop = entry - risk
        if stop <= 0:
            return None
        target = entry + Decimal(str(self._target_atr)) * a
        if not (stop < entry < target):
            return None
        rr = (target - entry) / risk
        if rr <= Decimal("1.5"):
            return None

        # Strength components
        ddf = float(dd)
        dd_score = min(35, max(0, int((ddf - self._dd) / 0.15 * 35)))
        af = float(a)
        clear_atr = float(cur.close - prev.high) / af if af > 0 else 0.0
        clear_score = min(30, max(0, int(clear_atr * 30)))
        rng = cur.high - cur.low
        if rng > 0:
            close_pos = float((cur.close - cur.low) / rng)
        else:
            close_pos = 0.5
        close_score = min(20, max(0, int(close_pos * 20)))
        vols = [float(b.volume) for b in bars[-21:-1]]
        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(15, max(0, int((vol_ratio - 0.8) * 15)))
        strength = max(0, min(100, dd_score + clear_score + close_score + vol_score))

        thesis = (
            f"Down {ddf * 100:.1f}% from the {self._lookback}-bar max close, then closed above the prior high: "
            f"likely exhaustion of forced redemption selling. Stop at the {self._swing_lookback}-bar swing low "
            f"less {self._buffer} ATR, clamped to {self._min_risk_atr}-{self._max_risk_atr} ATR; "
            f"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
Rebound after a 25% drop in 15 bars, ATR stop and target: Indistinguishable from luck · EdgeProven