Skip to content
The Casebook · An idea an AI invented

Retest of a high-volume selloff low, quiet-volume entry

Find a climax bar in the last 4 to 15 bars: volume >= 3x 50-day average volume and close down >= 3% on that day or the prior bar. Entry at latest close if low is within 2% of climax low, did not undercut it on a close basis, today's volume < 0.8x 50-day average, and close > open. Stop = climax low minus 0.5*ATR(14). Target = entry + 2.5*ATR(14).
Why the AI thought it might work

After a forced-liquidation volume spike marks a low, forced sellers are exhausted; a quiet retest on dried-up volume shows no remaining supply, and liquidity providers who bought the spike get validated and add. The retest entry gives a tight, well-defined stop below the climax low versus entering on the spike itself.

VerdictTested Nov 22, 2026

Killed by costs

There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).

  • +0.092R a trade before costs, +0.003R after the spread and the selection haircut.
Trades on the laggards
32

42 large US stocks, 15 years

Per trade, after costs
+0.003R

Before costs +0.092R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the 22 laggards, 32 trades averaged +0.092R before costs and +0.003R after, too thin to survive trading costs. Bull markets lost −0.296R over 21 trades; bear markets made 0.921R over 8 trades, a t of 1.53, below the bar of 2.95.

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
Bull21−0.296R−1.06−1.06 · 21d−0.202R · beats 35%+0.551R
Flat3−0.347R−0.40−0.40 · 3d−0.276R · beats 30%—
Bear8+0.921R1.531.53 · 8d+0.014R · beats 95%—
All32+0.003R−0.155R+0.551R

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.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
from scanners.base import Candidate


class PostCapitulationLowVolumeRetestLong:
    name = "post_capitulation_low_volume_retest_long"
    description = "Quiet up-close retest of a recent forced-liquidation volume-climax low"

    def __init__(self, min_age: int = 4, max_age: int = 15, vol_avg_len: int = 50,
                 climax_vol_mult: float = 3.0, climax_drop_pct: float = 0.03,
                 retest_pct: float = 0.02, dry_vol_mult: float = 0.8,
                 stop_atr_mult: float = 0.5, target_atr_mult: float = 2.5,
                 atr_len: int = 14) -> None:
        self._min_age = min_age
        self._max_age = max_age
        self._vlen = vol_avg_len
        self._cvm = climax_vol_mult
        self._drop = climax_drop_pct
        self._retest = retest_pct
        self._dry = dry_vol_mult
        self._sm = stop_atr_mult
        self._tm = target_atr_mult
        self._atr_len = atr_len

    def _avg_vol(self, bars, end_idx):
        # average volume of the vol_avg_len bars strictly before end_idx
        start = end_idx - self._vlen
        if start < 0:
            return None
        vols = [float(b.volume) for b in bars[start:end_idx]]
        if not vols:
            return None
        a = sum(vols) / len(vols)
        return a if a > 0 else None

    def _pct_change(self, bars, idx):
        if idx < 1:
            return None
        prev = float(bars[idx - 1].close)
        if prev <= 0:
            return None
        return float(bars[idx].close) / prev - 1.0

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        n = len(bars)
        if n < self._vlen + self._max_age + 5:
            return None
        i = n - 1
        cur = bars[i]
        if cur.close <= cur.open:
            return None

        # today's volume must be dried up
        avg_today = self._avg_vol(bars, i)
        if avg_today is None:
            return None
        today_vr = float(cur.volume) / avg_today
        if today_vr >= self._dry:
            return None

        # find the climax bar (pick the largest volume ratio in the window)
        best = None
        for age in range(self._min_age, self._max_age + 1):
            ci = i - age
            if ci < 2:
                break
            av = self._avg_vol(bars, ci)
            if av is None:
                continue
            vr = float(bars[ci].volume) / av
            if vr < self._cvm:
                continue
            d0 = self._pct_change(bars, ci)
            d1 = self._pct_change(bars, ci - 1)
            drops = [d for d in (d0, d1) if d is not None]
            if not drops:
                continue
            worst = min(drops)
            if worst > -self._drop:
                continue
            if best is None or vr > best[1]:
                best = (ci, vr, worst)
        if best is None:
            return None
        ci, climax_vr, climax_drop = best
        climax_low = bars[ci].low
        if climax_low <= 0:
            return None

        # no close since (and including) climax may undercut climax low
        for b in bars[ci:i + 1]:
            if b.close < climax_low:
                return None

        # today's low must retest within retest_pct of climax low
        dist = abs(float(cur.low - climax_low)) / float(climax_low)
        if dist > self._retest:
            return None

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

        # structural anchor: climax low (or any intraday undercut since)
        anchor = min(b.low for b in bars[ci:i + 1])
        entry = cur.close
        stop = anchor - Decimal(str(self._sm)) * atr_dec
        target = entry + Decimal(str(self._tm)) * atr_dec
        risk = entry - stop
        if risk <= 0 or stop <= 0 or target <= entry:
            return None
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None

        # strength components
        climax_score = min(30.0, max(0.0, (climax_vr - self._cvm) * 6.0 + 10.0))
        dry_score = min(25.0, max(0.0, (self._dry - today_vr) / self._dry * 25.0 / 0.6))
        precision_score = min(20.0, max(0.0, (1.0 - dist / self._retest) * 20.0))
        rng = cur.high - cur.low
        if rng > 0:
            close_pos = float((cur.close - cur.low) / rng)
        else:
            close_pos = 0.5
        close_score = min(15.0, max(0.0, close_pos * 15.0))
        rr_score = min(10.0, max(0.0, (float(rr) - 1.5) * 10.0))
        strength = int(max(0, min(100, round(climax_score + dry_score + precision_score + close_score + rr_score))))

        age = i - ci
        thesis = (
            f"Capitulation {age} bars ago ({climax_vr:.1f}x avg volume, {climax_drop * 100:.1f}% drop) "
            f"marked a low at {climax_low}. Today is a quiet retest within {dist * 100:.1f}% of that low "
            f"on {today_vr:.2f}x avg volume, closing up with no close below the climax low. "
            f"Forced supply looks exhausted. Stop sits below the climax low, target is 2.5 ATR."
        )

        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
Retest of a high-volume selloff low, quiet-volume entry: Killed by costs · EdgeProven