Skip to content
The Casebook · An idea an AI invented

Short on heavy down-volume near the 60-day high

Entry at latest close if sum of down-day volume over the last 15 bars >= 2x up-day volume, close is within 6% of the 60-day high, and close is below the prior 5-day low. Stop = 10-day high plus 0.3*ATR(14). Target = entry minus 2.4*ATR(14).
Why the AI thought it might work

Down-day volume more than twice up-day volume over 15 sessions while price is stalling near a 60-day high shows large holders distributing slowly to avoid impact. They are constrained by liquidity, so supply persists across weeks, then price rolls over as demand is exhausted.

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.048R a trade before costs, −0.034R after the spread and the selection haircut.
Trades on the laggards
376

42 large US stocks, 15 years

Per trade, after costs
−0.034R

Before costs +0.048R

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.048R a trade before costs and −0.034R after costs, over 376 trades. Winners did worse, at −0.314R. Bull markets came to −0.004R and flat markets to −0.155R; bear markets were +0.227R on only 11 trades. The thin edge before costs does not survive costs, so it is killed.

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
Bull274−0.004R−0.060.04 · 236d−0.152R · beats 95%−0.431R
Flat91−0.155R−1.23−0.92 · 68d−0.095R · beats 30%−0.103R
Bear11+0.227R0.700.70 · 11d−0.035R · beats 75%+0.623R
All376−0.034R−0.135R−0.314R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 12.1 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 DownVolumeDominanceDistributionShort:
    name = "down_volume_dominance_distribution_short"
    description = "Down-volume dominance near a 60-day high, then a close below the prior 5-day low: distribution rollover short"

    def __init__(self, vol_window: int = 15, vol_ratio_min: float = 1.6, high_lookback: int = 60, max_dist_from_high: float = 0.08, break_lookback: int = 5, stop_lookback: int = 10, stop_atr_buf: float = 0.3, target_atr_mult: float = 2.4, min_rr: float = 1.55, max_risk_atr: float = 3.5) -> None:
        self._vw = vol_window
        self._vr = vol_ratio_min
        self._hl = high_lookback
        self._dist = max_dist_from_high
        self._bl = break_lookback
        self._sl = stop_lookback
        self._buf = stop_atr_buf
        self._tm = target_atr_mult
        self._min_rr = min_rr
        self._max_risk_atr = max_risk_atr

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._hl, self._vw + 1, self._sl, self._bl + 1, 15) + 5
        if len(bars) < need:
            return None
        cur = bars[-1]
        close = cur.close
        if close is None or close <= 0:
            return None

        # Down-day vs up-day volume over the last vol_window bars
        down_v = 0.0
        up_v = 0.0
        n = len(bars)
        for i in range(n - self._vw, n):
            prev_c = bars[i - 1].close
            c = bars[i].close
            v = float(bars[i].volume)
            if c < prev_c:
                down_v += v
            elif c > prev_c:
                up_v += v
        if down_v <= 0:
            return None
        ratio = down_v / max(up_v, 1.0)
        if ratio < self._vr:
            return None

        # Close still near the 60-day high
        hh60 = max(b.high for b in bars[-self._hl:])
        if hh60 <= 0:
            return None
        dist = float((hh60 - close) / hh60)
        if dist > self._dist:
            return None

        # Trigger: close below the prior 5-day low
        prior_low = min(b.low for b in bars[-(self._bl + 1):-1])
        if close >= prior_low:
            return None

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

        # Structural stop: 10-day high plus a small ATR buffer
        hh10 = max(b.high for b in bars[-self._sl:])
        stop = hh10 + Decimal(str(self._buf)) * atr_d
        entry = close
        risk = stop - entry
        if risk <= 0:
            return None
        if risk > Decimal(str(self._max_risk_atr)) * atr_d:
            return None

        # Target: 2.4 ATR below entry, widened to keep R:R above the platform floor
        dist_t = Decimal(str(self._tm)) * atr_d
        floor_t = Decimal(str(self._min_rr)) * risk
        if floor_t > dist_t:
            dist_t = floor_t
        target = entry - dist_t
        if target <= 0:
            return None
        rr = (entry - target) / risk
        if rr <= Decimal("1.5"):
            return None

        # Strength score
        ratio_score = min(40, max(0, int((ratio - self._vr) / max(self._vr, 0.01) * 40 + 15)))
        prox_score = min(25, max(0, int((1.0 - dist / max(self._dist, 1e-6)) * 25)))
        brk = float((prior_low - close) / atr_d)
        rng = cur.high - cur.low
        close_pos = float((cur.high - close) / rng) if rng > 0 else 0.5
        dec_score = min(20, max(0, int(brk * 15 + close_pos * 8)))
        avg_vol = sum(float(b.volume) for b in bars[-21:-1]) / 20.0
        vol_score = min(15, max(0, int((float(cur.volume) / max(avg_vol, 1.0) - 0.8) * 15)))
        strength = max(0, min(100, ratio_score + prox_score + dec_score + vol_score))

        return Candidate(
            ticker=ticker,
            side="sell",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=(f"Distribution: down-volume is {ratio:.2f}x up-volume over {self._vw} sessions while price sits {dist*100:.1f}% under its {self._hl}-day high. "
                    f"Today's close broke the prior {self._bl}-day low, which suggests demand is exhausted and a rollover is starting."),
        )

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 heavy down-volume near the 60-day high: Killed by costs · EdgeProven