Skip to content
The Casebook · An idea an AI invented

Buy a big up day after a quiet 10% drop, 1.5/3 ATR exit

Entry at latest close if close is lower than the close 20 days ago by at least 10%, 20-day realized volatility is in the lowest third of its 250-day history, and today's return exceeds 2.5% with volume at least 1.3x average. Stop 1.5 ATR below. Target 3 ATR above.
Why the AI thought it might work

Slow, low-volatility declines are driven by steady index-fund and risk-parity outflows rather than information. When realized volatility finally expands with a large up bar after 15+ quiet down sessions, short covering by funds that crowded into the steady decline produces a squeeze with follow-through.

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

42 large US stocks, 15 years

Per trade, after costs
+0.268R

Before costs +0.353R

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.268R a trade after costs across 36 trades, with the winners at 0.388R. By market, the best t values were 0.34 in bull, 0.87 in flat and 0.95 in bear, all far below the 2.95 bar, and random dates scored a similar 0.3878 in flat and 0.5168 in bear. The 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
Bull25+0.104R0.340.34 · 25d−0.058R · beats 70%+0.346R
Flat8+0.526R0.870.87 · 8d+0.388R · beats 55%+0.753R
Bear3+0.951R0.950.95 · 3d+0.517R · beats 80%−0.316R
All36+0.268R+0.089R+0.388R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 13.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
import math
from decimal import Decimal

from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate


class LowVolBleedExhaustionLong:
    name = "low_vol_bleed_exhaustion_long"
    description = "Long a quiet 20-day bleed when a 2.5%+ high-volume up bar breaks the low-volatility regime"

    def __init__(
        self,
        decline_lookback: int = 20,
        min_decline: float = 0.08,
        vol_window: int = 20,
        vol_history: int = 250,
        vol_pct_max: float = 0.40,
        min_up_return: float = 0.025,
        min_vol_ratio: float = 1.3,
        atr_period: int = 14,
        stop_atr: float = 1.5,
        target_atr: float = 3.0,
    ) -> None:
        self._decline_lookback = decline_lookback
        self._min_decline = min_decline
        self._vol_window = vol_window
        self._vol_history = vol_history
        self._vol_pct_max = vol_pct_max
        self._min_up_return = min_up_return
        self._min_vol_ratio = min_vol_ratio
        self._atr_period = atr_period
        self._stop_atr = stop_atr
        self._target_atr = target_atr

    def _realized_vol(self, log_rets, end_idx):
        # stdev of log returns over vol_window ending at end_idx (inclusive)
        w = self._vol_window
        start = end_idx - w + 1
        if start < 0:
            return None
        window = log_rets[start:end_idx + 1]
        n = len(window)
        if n < 2:
            return None
        mean = sum(window) / n
        var = sum((r - mean) ** 2 for r in window) / (n - 1)
        return math.sqrt(var)

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = self._vol_history + self._vol_window + 10
        if len(bars) < need:
            return None

        closes = [float(b.close) for b in bars]
        if any(c <= 0 for c in closes[-need:]):
            return None
        cur = bars[-1]
        c_today = closes[-1]
        c_prev = closes[-2]

        # 1) Today's thrust: return >= min_up_return
        day_ret = c_today / c_prev - 1.0
        if day_ret < self._min_up_return:
            return None

        # 2) Volume >= ratio x 20-day avg (excluding today)
        prior_vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(prior_vols) / len(prior_vols)
        if avg_vol <= 0:
            return None
        vol_ratio = float(cur.volume) / avg_vol
        if vol_ratio < self._min_vol_ratio:
            return None

        # 3) Bleed measured into yesterday's close (pre-bounce), so today's
        #    thrust does not disqualify the setup it is supposed to confirm.
        lb = self._decline_lookback
        c_base = closes[-(lb + 2)]
        decline = 1.0 - c_prev / c_base
        if decline < self._min_decline:
            return None
        # Still meaningfully below the base after the bounce (not fully retraced)
        if c_today >= c_base * (1.0 - self._min_decline / 2.0):
            return None

        # 4) Realized vol through yesterday in lowest pct of its history
        log_rets = [0.0] + [math.log(closes[i] / closes[i - 1]) for i in range(1, len(closes))]
        y_idx = len(closes) - 2
        cur_rv = self._realized_vol(log_rets, y_idx)
        if cur_rv is None or cur_rv <= 0:
            return None
        hist = []
        for k in range(1, self._vol_history + 1):
            v = self._realized_vol(log_rets, y_idx - k)
            if v is not None:
                hist.append(v)
        if len(hist) < self._vol_history * 0.9:
            return None
        pct = sum(1 for v in hist if v < cur_rv) / len(hist)
        if pct > self._vol_pct_max:
            return None

        # Levels: operator-specified ATR stop/target from entry at close
        atr_val = atr(bars, self._atr_period)
        if atr_val is None or float(atr_val) <= 0:
            return None
        atr_dec = Decimal(str(float(atr_val)))
        entry = cur.close
        stop = entry - Decimal(str(self._stop_atr)) * atr_dec
        target = entry + Decimal(str(self._target_atr)) * atr_dec
        if stop <= 0 or not (stop < entry < target):
            return None
        risk = entry - stop
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None

        # Strength: volume, thrust size relative to quiet vol, vol lowness, close position
        vol_score = min(30.0, max(0.0, (vol_ratio - 1.0) * 30.0))
        sigma_move = day_ret / cur_rv if cur_rv > 0 else 0.0
        thrust_score = min(30.0, max(0.0, (sigma_move - 1.5) * 7.5))
        quiet_score = min(20.0, max(0.0, (self._vol_pct_max - pct) / max(self._vol_pct_max, 1e-9) * 20.0))
        rng = float(cur.high - cur.low)
        close_pos = (float(cur.close - cur.low) / rng) if rng > 0 else 0.5
        close_score = min(20.0, max(0.0, close_pos * 20.0))
        strength = int(max(0, min(100, round(vol_score + thrust_score + quiet_score + close_score))))

        thesis = (
            f"Quiet bleed of {decline * 100:.1f}% over {lb} sessions with 20d realized vol at the "
            f"{pct * 100:.0f}th pct of its {self._vol_history}d history; today +{day_ret * 100:.1f}% "
            f"({sigma_move:.1f} sigma) on {vol_ratio:.2f}x volume breaks the low-vol regime, "
            f"suggesting mechanical outflow exhaustion and a short-covering squeeze."
        )

        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 a big up day after a quiet 10% drop, 1.5/3 ATR exit: Indistinguishable from luck · EdgeProven