Skip to content
The Casebook · An idea an AI invented

Short after a 6-day run-up, weak close on heavy volume

Last 6 closes each higher than previous, total gain >= 12%, volume on last bar >= 1.5x 20-day average, and today's close < open with close in bottom half of range. Short at close. Stop = today's high plus 0.2*ATR(14). Target = entry - 2*ATR(14).
Why the AI thought it might work

A run of 6+ higher closes accompanied by rising volume draws in late retail and momentum chasers; when the final day shows a wide-range bar closing weak, buyers are exhausted and early holders distribute into the crowd. Compelled sellers are profit-targeting holders and trailing stops.

VerdictTested Nov 22, 2026

Too rare to judge

Too few trades in 15 years to tell anything either way.

  • 20 trades on the laggard stocks in 15 years; 30 are needed to judge.
Trades on the laggards
20

42 large US stocks, 15 years

Per trade, after costs
−0.249R

Before costs −0.167R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

The laggard stocks gave only 20 trades in 15 years, short of the 30 needed to judge. After costs they averaged −0.249R per trade; the winners averaged −0.195. In bull markets (18 trades) the result was −0.46R; the 2 bear-market trades averaged 1.657R, too few to rely on.

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
Bull18−0.460R−1.60−1.60 · 18d−0.173R · beats 10%−0.077R
Flat0————−0.261R
Bear2+1.657R11.4611.46 · 2d−0.095R · beats 95%−1.956R
All20−0.249R−0.165R−0.195R

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 HigherClosesVolumeExhaustionShort:
    name = "higher_closes_volume_exhaustion_short"
    description = "Short a high-volume, weak-closing red bar at the end of a 5+ day higher-close run up 8%+"

    def __init__(self, run_len: int = 5, min_gain: float = 0.08, vol_mult: float = 1.3,
                 min_range_atr: float = 0.8, stop_atr_buf: float = 0.2,
                 target_atr_mult: float = 2.0, min_rr: float = 1.5) -> None:
        self._run_len = run_len
        self._min_gain = min_gain
        self._vol_mult = vol_mult
        self._min_range_atr = min_range_atr
        self._stop_buf = stop_atr_buf
        self._tgt_mult = target_atr_mult
        self._min_rr = min_rr

    def _run_ok(self, closes, end):
        if end - self._run_len < 0:
            return False
        for k in range(self._run_len):
            if not closes[end - k] > closes[end - k - 1]:
                return False
        return True

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        n = len(bars)
        if n < 60:
            return None
        closes = [float(b.close) for b in bars]
        last = n - 1
        cur = bars[-1]
        o = float(cur.open)
        h = float(cur.high)
        l = float(cur.low)
        c = float(cur.close)
        rng = h - l
        if rng <= 0:
            return None
        # Exhaustion bar: red, close in bottom half of range
        if not c < o:
            return None
        close_pos = (c - l) / rng
        if close_pos >= 0.5:
            return None
        # Run ends today (gap-fade still higher close) or yesterday (today is first down close)
        end = None
        if self._run_ok(closes, last):
            end = last
        elif self._run_ok(closes, last - 1) and closes[last] <= closes[last - 1]:
            end = last - 1
        if end is None:
            return None
        base = closes[end - self._run_len]
        if base <= 0:
            return None
        peak = closes[end]
        gain = peak / base - 1.0
        if gain < self._min_gain:
            return None
        # Volume expansion
        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._vol_mult:
            return None
        atr_val = atr(bars, 14)
        if atr_val is None:
            return None
        a = float(atr_val)
        if a <= 0:
            return None
        if rng < self._min_range_atr * a:
            return None
        # Trade plan
        entry_f = c
        stop_f = h + self._stop_buf * a
        risk = stop_f - entry_f
        if risk <= 0:
            return None
        target_f = entry_f - self._tgt_mult * a
        reward = entry_f - target_f
        if reward / risk < self._min_rr:
            # Structural fallback: 50% retracement of the run, only if it restores RR
            retr = base + 0.5 * (peak - base)
            if retr < entry_f and (entry_f - retr) / risk >= self._min_rr:
                target_f = retr
                reward = entry_f - target_f
            else:
                return None
        if target_f <= 0:
            return None
        rr = reward / risk
        entry = cur.close
        stop = Decimal(str(round(stop_f, 4)))
        target = Decimal(str(round(target_f, 4)))
        if not (target < entry < stop):
            return None
        rr_dec = Decimal(str(rr)).quantize(Decimal("0.01"))
        if rr_dec <= Decimal("1.5"):
            return None
        # Strength: volume, close weakness, run extension, range
        vol_score = min(35, max(0, int((vol_ratio - 1.0) * 35)))
        close_score = min(25, max(0, int((0.5 - close_pos) * 50)))
        gain_score = min(25, max(0, int((gain - self._min_gain) * 250)))
        range_score = min(15, max(0, int((rng / a - self._min_range_atr) * 15)))
        strength = max(0, min(100, vol_score + close_score + gain_score + range_score))
        return Candidate(
            ticker=ticker,
            side="sell",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr_dec,
            signal_strength=strength,
            thesis=(f"{self._run_len}-day higher-close run (+{gain*100:.1f}%) capped by a red, "
                    f"wide-range bar closing at {close_pos*100:.0f}% of range on {vol_ratio:.1f}x volume: "
                    f"buyer exhaustion and distribution into late chasers; stop above exhaustion high."),
        )

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 after a 6-day run-up, weak close on heavy volume: Too rare to judge · EdgeProven