Skip to content
The Casebook · An idea an AI invented

Buy after three wide, high-volume down closes

Condition: last 3 sessions each closed lower with range at least 1.3x ATR(14) and volume above the 20-day average, cumulative 3-day decline at least 3.0x ATR(14), latest close within the lowest 25% of its own range. Entry long at close. Stop 1.0x ATR(14) below the 3-day low. Target 3-day decline midpoint.
Why the AI thought it might work

Margin calls and risk-limit breaches force leveraged holders to liquidate over multiple days regardless of price; sell-side volatility spikes and inventory-constrained market makers demand a large concession. After three consecutive wide-range down closes the forced flow is largely complete and the concession reverts over the following days.

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

42 large US stocks, 15 years

Per trade, after costs
+0.233R

Before costs +0.338R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On laggards the rule averaged +0.233R a trade after costs over 67 trades, against −0.257R on today's winners. By market, bull was +0.407R, flat −0.086R and bear +0.772R, but no market's t reached the 2.95 bar by trade or by day (best 1.47). The best market beat 85-90% of random-date draws, yet that falls short of the bar, so the gain 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
Bull26+0.407R1.131.13 · 26d−0.076R · beats 85%+0.207R
Flat31−0.086R−0.240.77 · 21d+0.071R · beats 20%−0.739R
Bear10+0.772R1.471.34 · 7d+0.080R · beats 90%+0.113R
All67+0.233R+0.015R−0.257R

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.7 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 ThreeDayForcedDeleveragingReversalLong:
    name = "three_day_forced_deleveraging_reversal_long"
    description = "Long at the close after three wide-range high-volume down closes totalling >=3x pre-selloff ATR, targeting the decline midpoint."

    def __init__(self, atr_period: int = 14, range_mult: float = 1.3, decline_mult: float = 3.0, close_pos_max: float = 0.25, stop_atr_mult: float = 1.0, vol_lookback: int = 20, min_rr: float = 1.5) -> None:
        self._atr_period = atr_period
        self._range_mult = Decimal(str(range_mult))
        self._decline_mult = Decimal(str(decline_mult))
        self._close_pos_max = Decimal(str(close_pos_max))
        self._stop_atr_mult = Decimal(str(stop_atr_mult))
        self._vol_lookback = vol_lookback
        # Platform floor: orchestrator discards anything below 1.5R.
        self._min_rr = Decimal(str(min_rr))

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(60, self._vol_lookback + self._atr_period + 5)
        if len(bars) < need:
            return None

        seq = bars[-3:]
        pre = bars[:-3]
        anchor_close = pre[-1].close

        # Baseline ATR measured BEFORE the selloff so the wide bars do not
        # inflate their own yardstick (or the stop buffer).
        atr_val = atr(pre, self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        atr_pre = Decimal(str(atr_val))

        vol_window = pre[-self._vol_lookback:]
        avg_vol = Decimal(str(sum(float(b.volume) for b in vol_window) / len(vol_window)))
        if avg_vol <= 0:
            return None

        prev_close = anchor_close
        vol_ratios = []
        range_ratios = []
        for b in seq:
            if b.close >= prev_close:
                return None
            rng = b.high - b.low
            if rng < self._range_mult * atr_pre:
                return None
            vol = Decimal(str(b.volume))
            if vol <= avg_vol:
                return None
            vol_ratios.append(vol / avg_vol)
            range_ratios.append(rng / atr_pre)
            prev_close = b.close

        current = seq[-1]
        decline = anchor_close - current.close
        if decline < self._decline_mult * atr_pre:
            return None

        cur_rng = current.high - current.low
        if cur_rng <= 0:
            return None
        close_pos = (current.close - current.low) / cur_rng
        if close_pos > self._close_pos_max:
            return None

        entry = current.close
        low3 = min(b.low for b in seq)
        stop = low3 - self._stop_atr_mult * atr_pre
        target = entry + decline / Decimal("2")
        risk = entry - stop
        reward = target - entry
        if risk <= 0 or reward <= 0 or not (stop < entry < target):
            return None
        rr = reward / risk
        if rr < self._min_rr:
            return None

        # Strength: magnitude of forced flow, volume intensity, decisiveness.
        dec_atr = float(decline / atr_pre)
        mag_score = min(40, max(0, int((dec_atr - 3.0) * 13 + 10)))
        avg_vr = float(sum(vol_ratios) / len(vol_ratios))
        vol_score = min(35, max(0, int((avg_vr - 1.0) * 25)))
        avg_rr_ = float(sum(range_ratios) / len(range_ratios))
        range_score = min(15, max(0, int((avg_rr_ - 1.3) * 15)))
        rr_score = min(10, max(0, int((float(rr) - 1.5) * 10)))
        strength = max(0, min(100, mag_score + vol_score + range_score + rr_score))

        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=(
                f"Three consecutive wide-range, above-average-volume down closes (decline {dec_atr:.1f}x pre-selloff ATR, "
                f"avg vol {avg_vr:.1f}x) closing in the bottom of the range suggest forced deleveraging is largely done; "
                f"expect the concession to revert to the decline midpoint."
            ),
        )

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 after three wide, high-volume down closes: Indistinguishable from luck · EdgeProven