Skip to content
The Casebook · An idea an AI invented

Quiet up-volume accumulation, above the 50-day average

Entry at latest close if sum of volume on up-close days over last 15 bars >= 2x sum on down-close days, 15-day price range is below 8% of the close, and close is above the 50-day SMA. Stop = 15-day low minus 0.3*ATR(14). Target = entry + 2.5*ATR(14).
Why the AI thought it might work

When up-day volume sums to more than twice down-day volume over 15 sessions while price drifts sideways, large institutions are quietly accumulating a position they must build over weeks to avoid moving price. The constraint is market impact: they cannot buy at once, so a persistent bid supports price and continuation follows once the position is built.

VerdictTested Nov 22, 2026

Survivorship mirage

It clears the bar on today's winners, the stocks everyone wishes they had bought, but not on the laggards, which is where hindsight can't help.

  • It clears the bar on today's winners but not on the laggards: the winners' own rise did the work.
Trades on the laggards
4,182

42 large US stocks, 15 years

Per trade, after costs
−0.077R

Before costs +0.002R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the 22 laggards the idea averaged −0.077R per trade after costs over 4182 trades, against 0.062R on today's winners. It was negative in bull (−0.052), flat (−0.203) and bear (−0.102) markets, with 0.0% of random-date draws beaten in bull and flat. The gain on winners without a matching gain on laggards gives the verdict.

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
Bull3,449−0.052R−2.99−3.31 · 1,528d−0.009R · beats 0%+0.067R
Flat641−0.203R−5.52−5.15 · 306d−0.019R · beats 0%+0.052R
Bear92−0.102R−0.81−0.73 · 67d+0.107R · beats 10%−0.273R
All4,182−0.077R−0.008R+0.062R

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


class UpVolumeDominanceAccumulation:
    name = "up_volume_dominance_accumulation_long"
    description = "Up-day volume >= 2x down-day volume over 15 bars in a tight (<8%) range above the 50-SMA; long at the close, stop under the 15-day low."

    def __init__(self, window: int = 15, vol_ratio_min: float = 2.0, max_range_pct: float = 0.08, sma_len: int = 50, atr_len: int = 14, stop_atr_buf: float = 0.3, target_atr_mult: float = 2.5, rr_floor: float = 1.6) -> None:
        self._window = window
        self._vol_ratio_min = vol_ratio_min
        self._max_range_pct = max_range_pct
        self._sma_len = sma_len
        self._atr_len = atr_len
        self._stop_atr_buf = stop_atr_buf
        self._target_atr_mult = target_atr_mult
        self._rr_floor = rr_floor

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        n = len(bars)
        need = max(self._sma_len, self._window + 1, self._atr_len + 1) + 10
        if n < need:
            return None
        current = bars[-1]
        close = current.close
        if close is None or close <= 0:
            return None

        # Up- vs down-close volume over the window
        up_vol = 0.0
        down_vol = 0.0
        for i in range(n - self._window, n):
            c = bars[i].close
            p = bars[i - 1].close
            v = float(bars[i].volume)
            if c > p:
                up_vol += v
            elif c < p:
                down_vol += v
        if up_vol <= 0:
            return None
        if down_vol <= 0:
            ratio = 10.0
        else:
            ratio = up_vol / down_vol
        if ratio < self._vol_ratio_min:
            return None

        # Sideways drift: tight 15-day range
        win = bars[-self._window:]
        hi = max(b.high for b in win)
        lo = min(b.low for b in win)
        range_pct = float((hi - lo) / close)
        if range_pct >= self._max_range_pct:
            return None

        # Trend filter
        sma_val = sma([b.close for b in bars], self._sma_len)
        if sma_val is None:
            return None
        sma_dec = Decimal(str(sma_val))
        if close <= sma_dec:
            return None

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

        # Structural stop per spec
        entry = close
        stop = lo - Decimal(str(self._stop_atr_buf)) * atr_dec
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None

        # Target: spec's 2.5*ATR, extended to rr_floor*risk when the range is wide,
        # so entries anywhere in the range survive the orchestrator's 1.5 R:R floor.
        atr_target_dist = Decimal(str(self._target_atr_mult)) * atr_dec
        rr_target_dist = Decimal(str(self._rr_floor)) * risk
        target_dist = atr_target_dist if atr_target_dist >= rr_target_dist else rr_target_dist
        target = entry + target_dist
        rr = target_dist / risk
        if rr <= Decimal("1.5") or target <= entry:
            return None

        # Score: volume dominance (0-40), range tightness (0-30), close position in range (0-30)
        vol_score = int(min(40.0, max(0.0, (min(ratio, 5.0) - self._vol_ratio_min) / (5.0 - self._vol_ratio_min) * 40.0)))
        tight_score = int(min(30.0, max(0.0, (1.0 - range_pct / self._max_range_pct) * 30.0)))
        rng = hi - lo
        if rng > 0:
            pos = float((close - lo) / rng)
        else:
            pos = 0.5
        pos_score = int(min(30.0, max(0.0, pos * 30.0)))
        strength = max(0, min(100, vol_score + tight_score + pos_score))

        target_kind = "2.5xATR" if atr_target_dist >= rr_target_dist else "%.1fR (range wide vs ATR)" % self._rr_floor
        thesis = (
            "Accumulation: up-day volume %.1fx down-day volume over %d bars while the range is only %.1f%% of price, above the %d-SMA. "
            "Persistent institutional bid should resolve the range upward. Stop under the %d-day low, target %s."
            % (ratio, self._window, range_pct * 100.0, self._sma_len, self._window, target_kind)
        )

        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