Volume-spike bar, two quiet holding days, then entry
Entry at latest close if 3 bars ago had volume >= 2.5x the 20-day average, a return above 1.5*ATR(14)/close and a close in the top 25% of its range, and the last two bars both held above that bar's midpoint with range below ATR(14) and volume below the spike volume. Stop = spike bar low. Target = entry + 2.2*ATR(14).
A big up bar on 2.5x volume that closes in the top quarter signals institutional demand that cannot be fully filled in one day. Two quiet days that hold above the spike bar's midpoint show continued working of the order, and the third day tends to continue up as remaining demand is filled at slightly higher prices.
Too rare to judge
Too few trades in 15 years to tell anything either way.
- 18 trades on the laggard stocks in 15 years; 30 are needed to judge.
42 large US stocks, 15 years
Before costs +0.192R
By trade and by day, sized to 362 rules
What the numbers say
On the laggard stocks this produced only 18 trades in 15 years, short of the 30 needed to judge. Result per trade after costs was 0.105R, against 0.441 on the winners. Bull markets held 14 of the 18 trades at −0.075R, so the flat and bear results rest on 2 trades each.
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 | 14 | −0.075R | −0.22 | −0.22 · 14d | −0.052R · beats 40% | +0.685R |
| Flat | 2 | +0.975R | 1.86 | 1.86 · 2d | −0.212R · beats 90% | +0.358R |
| Bear | 2 | +0.494R | 0.47 | 0.47 · 2d | +0.013R · beats 75% | −1.104R |
| All | 18 | +0.105R | −0.063R | +0.441R |
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.4 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 codeHide
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class ThirdDayVolumeSpikeDrift:
name = "third_day_volume_spike_drift"
description = "Long the close of the second quiet day holding above the midpoint of a 2.5x-volume, top-quartile-close, >1.5 ATR up spike"
def __init__(self, vol_mult: float = 2.5, ret_atr: float = 1.5, close_pos_min: float = 0.75, target_atr: float = 2.2, min_rr: float = 1.6, max_risk_atr: float = 4.0, atr_period: int = 14, vol_lookback: int = 20) -> None:
self._vol_mult = vol_mult
self._ret_atr = ret_atr
self._close_pos_min = close_pos_min
self._target_atr = target_atr
self._min_rr = min_rr
self._max_risk_atr = max_risk_atr
self._atr_period = atr_period
self._vol_lookback = vol_lookback
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(60, self._vol_lookback + self._atr_period + 10)
if len(bars) < need:
return None
spike = bars[-3]
prev = bars[-4]
q1 = bars[-2]
q2 = bars[-1]
# 20-day average volume ending the day before the spike
vol_window = bars[-(3 + self._vol_lookback):-3]
avg_vol = float(sum(b.volume for b in vol_window)) / len(vol_window)
if avg_vol <= 0:
return None
spike_vol = float(spike.volume)
vol_ratio = spike_vol / avg_vol
if vol_ratio < self._vol_mult:
return None
atr_spike_raw = atr(bars[:-2], self._atr_period)
atr_now_raw = atr(bars, self._atr_period)
if atr_spike_raw is None or atr_now_raw is None:
return None
atr_spike = Decimal(str(atr_spike_raw))
atr_now = Decimal(str(atr_now_raw))
if atr_spike <= 0 or atr_now <= 0:
return None
# Spike return > 1.5 * ATR / close <=> close - prev_close > 1.5 * ATR
move = spike.close - prev.close
if move <= Decimal(str(self._ret_atr)) * atr_spike:
return None
spike_range = spike.high - spike.low
if spike_range <= 0:
return None
close_pos = float((spike.close - spike.low) / spike_range)
if close_pos < self._close_pos_min:
return None
midpoint = spike.low + spike_range / 2
# Two quiet days holding above the midpoint
for q in (q1, q2):
if q.close <= midpoint:
return None
if q.low <= spike.low:
return None
if (q.high - q.low) >= atr_now:
return None
if float(q.volume) >= spike_vol:
return None
entry = q2.close
stop = spike.low
risk = entry - stop
if risk <= 0:
return None
if risk > Decimal(str(self._max_risk_atr)) * atr_now:
return None
# Operator target = entry + 2.2 ATR; extend to min_rr * risk when the spike-low stop is wide,
# so valid setups are not discarded by the platform's R:R floor.
target_atr = entry + Decimal(str(self._target_atr)) * atr_now
target_rr = entry + Decimal(str(self._min_rr)) * risk
target = max(target_atr, target_rr)
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
# Strength components
vol_score = min(35, max(0, int((vol_ratio - self._vol_mult) / 2.5 * 35)))
close_score = min(20, max(0, int((close_pos - self._close_pos_min) / (1 - self._close_pos_min + 1e-9) * 20)))
quiet_ratio = float(((q1.high - q1.low) + (q2.high - q2.low)) / (2 * atr_now))
quiet_vol = (float(q1.volume) + float(q2.volume)) / (2 * spike_vol)
quiet_score = min(25, max(0, int((1 - quiet_ratio) * 15 + (1 - quiet_vol) * 10)))
hold_pos = float((q2.close - midpoint) / (spike.high - midpoint)) if spike.high > midpoint else 0.0
hold_score = min(20, max(0, int(hold_pos * 20)))
strength = max(0, min(100, vol_score + close_score + quiet_score + hold_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"Up spike 2 bars ago on {vol_ratio:.1f}x volume, closing in the top {100 - close_pos * 100:.0f}% of its range; "
f"two quiet days since held above its midpoint, suggesting unfilled institutional demand is still being worked. "
f"Stop at spike low; target {self._target_atr} ATR (or {self._min_rr}R if the stop is wide)."
),
)
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.