Skip to content
The Casebook · An idea an AI invented

Buy 35-55% below 252-day high after a base, 3x ATR target

Entry at latest close if close is between 35% and 55% below the 252-day high, the stock has not made a new 60-day low in the last 20 bars, and the latest close is above the 10-day SMA with volume at least 1.0x its 20-day average. Stop = lowest low of the last 20 bars minus 0.25x ATR(14). Target = entry plus 3x ATR(14).
Why the AI thought it might work

Stocks that sit 35-55% below their 52-week high are anchored away from by investors who refuse to buy 'broken' names, creating underreaction to stabilisation. Once the stock stops making new lows and closes up after a quiet base, the neglected-anchor discount slowly closes as marginal buyers return.

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

42 large US stocks, 15 years

Per trade, after costs
+0.119R

Before costs +0.192R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

Across 128 laggard trades the result was +0.119R a trade after costs. Only flat markets stood out (+0.606R, t 2.73 by trade, 2.57 by day), still short of the 2.95 bar; bull was −0.055R and bear +0.116R, beating 20% of random-date draws. No market cleared the bar, so the verdict is indistinguishable 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
Bull81−0.055R−0.370.02 · 73d−0.024R · beats 35%−0.518R
Flat29+0.606R2.732.57 · 26d−0.145R · beats 100%+0.972R
Bear18+0.116R0.400.58 · 15d+0.299R · beats 20%+0.045R
All128+0.119R−0.006R+0.140R

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


class NeglectRebound52wkDrawdown:
    name = "neglect_rebound_52wk_drawdown"
    description = "Long a 35-55% drawdown name that stopped making 60-day lows and reclaims its 10-SMA on >=1x volume"

    def __init__(self, high_lookback: int = 252, min_dd: float = 0.35, max_dd: float = 0.55,
                 low_lookback: int = 60, quiet_bars: int = 20, sma_len: int = 10,
                 vol_len: int = 20, vol_mult: float = 1.0, atr_len: int = 14,
                 stop_atr_buf: float = 0.25, target_atr_mult: float = 3.0,
                 min_rr: float = 1.6, resistance_lookback: int = 60) -> None:
        self._hl = high_lookback
        self._min_dd = Decimal(str(min_dd))
        self._max_dd = Decimal(str(max_dd))
        self._ll = low_lookback
        self._quiet = quiet_bars
        self._sma_len = sma_len
        self._vol_len = vol_len
        self._vol_mult = Decimal(str(vol_mult))
        self._atr_len = atr_len
        self._buf = Decimal(str(stop_atr_buf))
        self._tmult = Decimal(str(target_atr_mult))
        self._min_rr = Decimal(str(min_rr))
        self._res_lb = resistance_lookback

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._hl, self._ll + self._quiet, self._res_lb, self._vol_len + 1) + 1
        if len(bars) < need:
            return None
        cur = bars[-1]
        entry = Decimal(str(cur.close))
        if entry <= 0:
            return None

        high_52 = max(Decimal(str(b.high)) for b in bars[-self._hl:])
        if high_52 <= 0:
            return None
        dd = Decimal(1) - entry / high_52
        if dd < self._min_dd or dd > self._max_dd:
            return None

        n = len(bars)
        for i in range(n - self._quiet, n):
            prior_low = min(Decimal(str(b.low)) for b in bars[i - self._ll:i])
            if Decimal(str(bars[i].low)) < prior_low:
                return None

        closes = [b.close for b in bars]
        sma_v = sma(closes, self._sma_len)
        if sma_v is None:
            return None
        sma_d = Decimal(str(sma_v))
        if entry <= sma_d:
            return None

        vol_window = bars[-(self._vol_len + 1):-1]
        avg_vol = Decimal(str(sum(b.volume for b in vol_window))) / Decimal(self._vol_len)
        if avg_vol <= 0:
            return None
        vol_ratio = Decimal(str(cur.volume)) / avg_vol
        if vol_ratio < self._vol_mult:
            return None

        atr_v = atr(bars, self._atr_len)
        if atr_v is None or atr_v <= 0:
            return None
        atr_d = Decimal(str(atr_v))

        base = bars[-self._quiet:]
        base_low = min(Decimal(str(b.low)) for b in base)
        base_high = max(Decimal(str(b.high)) for b in base)
        stop = base_low - self._buf * atr_d
        risk = entry - stop
        if stop <= 0 or risk <= 0:
            return None

        target = entry + self._tmult * atr_d
        extended = False
        rr = (target - entry) / risk
        if rr < self._min_rr:
            resistance = max(Decimal(str(b.high)) for b in bars[-(self._res_lb + 1):-1])
            alt = entry + self._min_rr * risk
            if alt <= resistance:
                target = alt
                extended = True
                rr = (target - entry) / risk
            else:
                return None
        if rr <= Decimal("1.5") or target <= entry:
            return None

        vol_score = int(min(Decimal(35), max(Decimal(0), (vol_ratio - Decimal(1)) * Decimal(35))))
        range_atr = (base_high - base_low) / atr_d
        quiet_score = int(min(Decimal(35), max(Decimal(0), (Decimal(8) - range_atr) * Decimal(7))))
        rng = Decimal(str(cur.high)) - Decimal(str(cur.low))
        close_pos = (entry - Decimal(str(cur.low))) / rng if rng > 0 else Decimal("0.5")
        close_score = int(min(Decimal(20), max(Decimal(0), close_pos * Decimal(20))))
        up_score = 10 if entry > Decimal(str(bars[-2].close)) else 0
        strength = max(0, min(100, vol_score + quiet_score + close_score + up_score))

        tgt_note = "structural (below 60d high)" if extended else "3x ATR"
        thesis = (
            f"{ticker} is {float(dd) * 100:.0f}% below its 252d high, made no new 60d low in {self._quiet} bars, "
            f"and closed above its 10-SMA on {float(vol_ratio):.2f}x volume. Neglect discount should narrow as buyers return; "
            f"stop under base low, target {tgt_note}."
        )
        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=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
Buy 35-55% below 252-day high after a base, 3x ATR target: Indistinguishable from luck · EdgeProven