Skip to content
The Casebook · An idea an AI invented

Short near the 252-day low, below 20-day average

Entry at latest close if close is within 3% above the 252-day low, close is below the 20-day SMA, and the close is below the close 10 days ago. Short. Stop = entry + 1.5*ATR(14). Target = entry - 3*ATR(14). Skip if price already made a new 252-day low today.
Why the AI thought it might work

Holders sitting on losses hit a psychological breakeven and sell into any bounce (disposition effect). Names grinding just above a 52-week low after failing to hold a bounce attract continued supply from capitulating holders and loss-averse funds with stop rules. The price anchor at the low is salient and widely referenced, so breaks continue; frequent in laggard names.

VerdictTested Nov 22, 2026

Loses money

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

  • −0.119R a trade after costs on the laggard stocks.
Trades on the laggards
2,546

42 large US stocks, 15 years

Per trade, after costs
−0.119R

Before costs −0.032R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

Across 2546 laggard trades this short averaged −0.119R after costs (−0.032R before), and −0.347R on the winners. It lost in bull (−0.081R), flat (−0.198R) and bear (−0.178R) markets. In flat markets it beat only 10% of random-date draws. Losses in every regime lead to the verdict.

How it was tested

The rule as written, coded once, run on every stock the same way.

Side
Short
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
Bull1,667−0.081R−2.41−1.95 · 1,037d−0.096R · beats 65%−0.345R
Flat564−0.198R−3.61−3.21 · 315d−0.124R · beats 10%−0.192R
Bear315−0.178R−2.26−0.45 · 163d−0.244R · beats 80%−0.525R
All2,546−0.119R−0.120R−0.347R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.8 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 FiftyTwoWeekLowProximityDispositionShort:
    name = "fifty_two_week_low_proximity_disposition_short"
    description = "Short names grinding within 3% above the 252-day low, below SMA20 and lower than 10 days ago, before the low breaks."

    def __init__(self, low_lookback: int = 252, proximity_pct: float = 0.03, sma_len: int = 20, mom_lookback: int = 10, swing_lookback: int = 10, atr_len: int = 14, atr_buffer: float = 0.25, min_stop_atr: float = 1.0, max_stop_atr: float = 2.0, rr_target: float = 2.0) -> None:
        self._low_lookback = low_lookback
        self._prox = Decimal(str(proximity_pct))
        self._sma_len = sma_len
        self._mom = mom_lookback
        self._swing = swing_lookback
        self._atr_len = atr_len
        self._buf = Decimal(str(atr_buffer))
        self._min_stop = Decimal(str(min_stop_atr))
        self._max_stop = Decimal(str(max_stop_atr))
        self._rr = Decimal(str(rr_target))

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._low_lookback, self._sma_len, self._mom, self._swing, self._atr_len) + 2
        if len(bars) < need:
            return None
        cur = bars[-1]
        entry = Decimal(str(cur.close))
        if entry <= 0:
            return None

        # Prior 252-day low (excluding today)
        prior = bars[-(self._low_lookback + 1):-1]
        low_252 = min(Decimal(str(b.low)) for b in prior)
        if low_252 <= 0:
            return None
        # Skip if today already made a new 252-day low
        if Decimal(str(cur.low)) <= low_252:
            return None
        # Close within proximity_pct above the low
        dist = (entry - low_252) / low_252
        if dist < 0 or dist > self._prox:
            return None

        # Below 20-day SMA
        closes = [Decimal(str(b.close)) for b in bars[-self._sma_len:]]
        sma20 = sum(closes) / Decimal(len(closes))
        if entry >= sma20:
            return None

        # Below close N days ago
        ref_close = Decimal(str(bars[-(self._mom + 1)].close))
        if entry >= ref_close:
            return None

        atr_raw = atr(bars, self._atr_len)
        if atr_raw is None:
            return None
        a = Decimal(str(atr_raw))
        if a <= 0:
            return None

        # Structural stop: above recent swing high (failed bounce) plus buffer, bounded by ATR band
        swing_high = max(Decimal(str(b.high)) for b in bars[-self._swing:])
        stop = swing_high + self._buf * a
        lo = entry + self._min_stop * a
        hi = entry + self._max_stop * a
        if stop < lo:
            stop = lo
        if stop > hi:
            stop = hi
        risk = stop - entry
        if risk <= 0:
            return None
        target = entry - self._rr * risk
        if target <= 0:
            return None
        rr = (entry - target) / risk
        if rr < Decimal("1.5"):
            return None

        # Scoring
        prox_f = float(dist / self._prox)
        prox_score = int(max(0.0, min(1.0, 1.0 - prox_f)) * 35)

        drop = float((ref_close - entry) / ref_close)
        mom_score = int(max(0.0, min(1.0, drop / 0.10)) * 25)

        bounce_window = bars[-40:-1]
        bounce_high = max(Decimal(str(b.high)) for b in bounce_window)
        bounce = float((bounce_high - low_252) / low_252)
        bounce_score = int(max(0.0, min(1.0, bounce / 0.15)) * 20)

        rng = Decimal(str(cur.high)) - Decimal(str(cur.low))
        if rng > 0:
            close_pos = float((Decimal(str(cur.high)) - entry) / rng)
        else:
            close_pos = 0.5
        close_score = int(max(0.0, min(1.0, close_pos)) * 20)

        strength = max(0, min(100, prox_score + mom_score + bounce_score + close_score))

        thesis = (
            f"Close {float(dist) * 100:.1f}% above the 252-day low ({low_252:.2f}), below SMA{self._sma_len} "
            f"and {drop * 100:.1f}% below the close {self._mom} days ago after a failed bounce. "
            "Disposition-effect supply from loss-holders and stop clusters under the salient 52-week low "
            "favor continuation lower; the stop sits above the recent swing high."
        )

        return Candidate(
            ticker=ticker,
            side="sell",
            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
Short near the 252-day low, below 20-day average: Loses money · EdgeProven