Skip to content
The Casebook · An idea an AI invented

Short on lower swing highs, falling volume, 15-day low break

Entry short at latest close if the last 3 swing highs (5-bar pivots) are each lower than the prior, the average volume of the last 10 days is below the average of the 20 days before that, and the close breaks the lowest close of the prior 15 days. Stop 1.2 ATR above. Target 3 ATR below.
Why the AI thought it might work

Stocks with persistent supply: each bounce fails at a lower high on declining volume, showing no buyers are stepping in. Holders underwater since the failed highs sell into any strength, and a break of the last swing low triggers stop orders and forced redemptions, making the break self-reinforcing.

VerdictTested Nov 22, 2026

Loses money

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

  • −0.194R a trade after costs on the laggard stocks.
Trades on the laggards
1,381

42 large US stocks, 15 years

Per trade, after costs
−0.194R

Before costs −0.077R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

Across 1381 trades on the laggard stocks, the short averaged −0.194R after costs (−0.077R before costs). Winners were worse at −0.297R. Bull markets were weakest at −0.245R (t −4.68), beating only 10% of random-date draws; flat and bear markets were also negative. No market type showed a positive result, which matches the Loses money 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
Bull909−0.245R−4.68−4.18 · 628d−0.160R · beats 10%−0.413R
Flat303−0.090R−0.91−0.17 · 180d−0.147R · beats 75%−0.170R
Bear169−0.107R−0.82−1.74 · 99d−0.221R · beats 80%−0.031R
All1,381−0.194R−0.165R−0.297R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 11.5 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 LowerHighsDryupBreakdownShort:
    name = "lower_highs_dryup_breakdown_short"
    description = "Three stepped-down swing highs on drying volume, then a close below the prior 15-day closing low; short the breakdown."

    def __init__(self, pivot_span: int = 2, swing_lookback: int = 80, recent_vol: int = 10, base_vol: int = 20, break_lookback: int = 15, stop_atr: float = 1.2, target_atr: float = 3.0, atr_period: int = 14, min_bars: int = 120) -> None:
        self._span = pivot_span
        self._swing_lookback = swing_lookback
        self._recent_vol = recent_vol
        self._base_vol = base_vol
        self._break_lookback = break_lookback
        self._stop_atr = stop_atr
        self._target_atr = target_atr
        self._atr_period = atr_period
        self._min_bars = min_bars

    def _swing_highs(self, bars):
        n = len(bars)
        k = self._span
        start = max(k, n - self._swing_lookback)
        out = []
        # only confirmed pivots: need k bars to the right, all <= n-1
        for i in range(start, n - k):
            h = bars[i].high
            ok = True
            for j in range(i - k, i + k + 1):
                if j == i:
                    continue
                if bars[j].high > h or (j < i and bars[j].high == h):
                    ok = False
                    break
            if ok:
                out.append((i, h))
        return out

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._min_bars:
            return None
        cur = bars[-1]

        swings = self._swing_highs(bars)
        if len(swings) < 3:
            return None
        s1, s2, s3 = swings[-3], swings[-2], swings[-1]
        if not (s1[1] > s2[1] > s3[1]):
            return None

        rv = self._recent_vol
        bv = self._base_vol
        recent = bars[-rv:]
        base = bars[-(rv + bv):-rv]
        avg_recent = sum(float(b.volume) for b in recent) / rv
        avg_base = sum(float(b.volume) for b in base) / bv
        if avg_base <= 0 or avg_recent >= avg_base:
            return None

        prior = bars[-(self._break_lookback + 1):-1]
        prior_low_close = min(b.close for b in prior)
        if cur.close >= prior_low_close:
            return None

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

        entry = cur.close
        stop = entry + Decimal(str(self._stop_atr)) * atr_d
        target = entry - Decimal(str(self._target_atr)) * atr_d
        if target <= 0:
            return None
        risk = stop - entry
        if risk <= 0 or not (target < entry < stop):
            return None
        rr = (entry - target) / risk
        if rr < Decimal("1.5"):
            return None

        # strength components
        dry = 1.0 - avg_recent / avg_base
        dry_score = min(30, max(0, int(dry * 75)))

        brk_atr = float((prior_low_close - entry) / atr_d)
        brk_score = min(25, max(0, int(brk_atr * 40)))

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

        step = float((s1[1] - s3[1]) / atr_d)
        step_score = min(15, max(0, int(step * 5)))

        trend_score = 0
        closes = [b.close for b in bars]
        sma50 = sma(closes, 50)
        sma200 = sma(closes, 200) if len(bars) >= 200 else None
        if sma50 is not None and float(entry) < float(sma50):
            trend_score += 5
        if sma200 is not None and float(entry) < float(sma200):
            trend_score += 5

        strength = max(0, min(100, dry_score + brk_score + close_score + step_score + trend_score))

        thesis = (
            f"Three lower swing highs ({float(s1[1]):.2f} > {float(s2[1]):.2f} > {float(s3[1]):.2f}) "
            f"with 10d volume {dry*100:.0f}% below the prior 20d; the close broke the "
            f"{self._break_lookback}-day closing low {float(prior_low_close):.2f}. Persistent supply and "
            f"stops below the range should extend the breakdown."
        )

        return Candidate(
            ticker=ticker,
            side="sell",
            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
Short on lower swing highs, falling volume, 15-day low break: Loses money · EdgeProven