Quiet-volume breakout to a 40-day high on 2x volume
20-day average volume is < 0.6x the 120-day average volume. Latest close is the highest close in 40 bars and volume >= 2x the 20-day average. Long at close. Stop = entry - 2*ATR(14). Target = entry + 4*ATR(14).
After a long period of ignored trading with turnover collapsed, a first high-volume close above the range signals new institutional participation entering a neglected stock; neglected stocks reprice slowly because analyst and fund attention arrives with lag (attention-constrained investors).
Too rare to judge
Too few trades in 15 years to tell anything either way.
- 0 trades on the laggard stocks in 15 years; 30 are needed to judge.
42 large US stocks, 15 years
Before costs —
By trade and by day, sized to 362 rules
What the numbers say
The rule fired 0 times on the laggard stocks in 15 years, and 30 trades are needed to judge, so there is no laggard result to report. On the 20 winners it averaged 0.028R per trade after costs. With no laggard trades in any market type, the verdict is too rare to judge.
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.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 0 | — | — | — | — | −0.292R |
| Flat | 0 | — | — | — | — | +1.947R |
| Bear | 0 | — | — | — | — | — |
| All | 0 | — | — | +0.028R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.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, 0 times; the idea must beat 95% of those draws.
The scanner we wroteShow the codeHide
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
def _median(vals):
s = sorted(vals)
n = len(s)
if n == 0:
return 0.0
m = n // 2
if n % 2 == 1:
return s[m]
return (s[m - 1] + s[m]) / 2.0
class VolumeDroughtBreakoutLong:
name = "volume_drought_breakout_long"
description = "First 2x-volume 40-bar closing high after a median-measured multi-week volume drought"
def __init__(self, short_win: int = 20, long_win: int = 120, drought_ratio: float = 0.6,
high_lookback: int = 40, surge_mult: float = 2.0, surge_vs_long: float = 1.3,
atr_period: int = 14, stop_atr: float = 2.0, target_atr: float = 4.0) -> None:
self._sw = short_win
self._lw = long_win
self._dr = drought_ratio
self._hl = high_lookback
self._sm = surge_mult
self._svl = surge_vs_long
self._ap = atr_period
self._sa = stop_atr
self._ta = target_atr
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._lw, self._hl) + self._ap + 2
if len(bars) < need:
return None
cur = bars[-1]
prior = bars[:-1]
short_vols = [float(b.volume) for b in prior[-self._sw:]]
long_vols = [float(b.volume) for b in prior[-self._lw:]]
if len(short_vols) < self._sw or len(long_vols) < self._lw:
return None
short_med = _median(short_vols)
long_med = _median(long_vols)
short_avg = sum(short_vols) / len(short_vols)
if long_med <= 0 or short_avg <= 0:
return None
ratio = short_med / long_med
if ratio >= self._dr:
return None
# also require the mean to confirm the drought (no hidden spike in recent 20)
if short_avg / long_med >= self._dr * 1.25:
return None
# breakout: highest close in high_lookback bars
prev_closes = [b.close for b in prior[-(self._hl - 1):]]
prev_max = max(prev_closes)
if cur.close <= prev_max:
return None
vol = float(cur.volume)
surge = vol / short_avg
if surge < self._sm:
return None
if vol < self._svl * long_med:
return None
a = atr(bars, self._ap)
if a is None or a <= 0:
return None
a_dec = Decimal(str(a))
entry = cur.close
stop = entry - Decimal(str(self._sa)) * a_dec
target = entry + Decimal(str(self._ta)) * a_dec
if stop <= 0 or not (stop < entry < target):
return None
risk = entry - stop
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
drought_score = max(0, min(30, int((self._dr - ratio) / self._dr * 60)))
surge_score = max(0, min(35, int((surge - self._sm) * 10) + 10))
rng = cur.high - cur.low
close_pos = float((cur.close - cur.low) / rng) if rng > 0 else 0.5
close_score = max(0, min(20, int(close_pos * 20)))
clear_atr = float((cur.close - prev_max) / a_dec)
clear_score = max(0, min(15, int(clear_atr * 15)))
strength = max(0, min(100, drought_score + surge_score + close_score + clear_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"Neglected stock: 20d median volume {ratio:.2f}x the 120d median. "
f"It printed a {self._hl}-bar closing high on {surge:.1f}x average volume, "
f"a sign of new participation that attention-constrained investors price in slowly."),
)
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.
Describe it in plain words and get the same honest test in about a minute.