Quiet low-volume dip near range low, target range midpoint
Condition: volume is the lowest of the last 30 sessions, close is in the bottom 25% of the 20-day high-low range, and 20-day range is within 10% of its 100-day median (no trend). Entry long at close. Stop 1.0x ATR(14) below close. Target the 20-day range midpoint.
Market makers widen quotes and cut inventory when realized vol and volume drop, so resting orders accumulate at range edges; when closing near the range low on the lowest volume in 30 sessions, supply is exhausted (no sellers left) and the first normal buyer moves price up through thin offers. Edge is an inventory-risk premium paid to liquidity takers in thin conditions.
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.
42 large US stocks, 15 years
Before costs +0.131R
By trade and by day, sized to 362 rules
What the numbers say
Only 20 trades appeared on the laggard stocks in 15 years, short of the 30 needed to judge. Those trades averaged −0.160R after costs; the 20 winners averaged 0.137R. In bull markets (19 trades) the average was −0.307R; flat had 1 trade and bear had none.
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 | 19 | −0.307R | −0.78 | −1.22 · 18d | −0.265R · beats 45% | +0.217R |
| Flat | 1 | +2.627R | — | — · 1d | −0.563R · beats 80% | −1.237R |
| Bear | 0 | — | — | — | — | +3.298R |
| All | 20 | −0.160R | −0.280R | +0.137R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 15.8 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
import math
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class VolumeDryUpRangeLowReversionLong:
name = "volume_dry_up_range_low_reversion_long"
description = "Lowest-volume-in-30 close in bottom quarter of a trendless 20-day range; long toward range midpoint, stop under range low."
def __init__(self, range_len: int = 20, vol_lookback: int = 30, median_len: int = 100,
width_tol: float = 0.10, bottom_frac: float = 0.25, sma50_slope_max: float = 0.03,
sma100_dev_max: float = 0.08, min_overlap: float = 0.5, stop_atr_buf: float = 0.25,
min_rr: float = 1.5, min_bars: int = 160) -> None:
self._rl = range_len
self._vl = vol_lookback
self._ml = median_len
self._wt = width_tol
self._bf = bottom_frac
self._slope = sma50_slope_max
self._dev = sma100_dev_max
self._ov = min_overlap
self._buf = stop_atr_buf
self._min_rr = min_rr
self._min_bars = min_bars
def _width(self, bars, end):
w = bars[end - self._rl + 1:end + 1]
hi = max(float(b.high) for b in w)
lo = min(float(b.low) for b in w)
return hi, lo
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = len(bars)
need = max(self._min_bars, self._ml + self._rl + 2, 2 * self._rl + 2, 75)
if n < need:
return None
cur = bars[-1]
close = float(cur.close)
if close <= 0:
return None
# 1. Volume dry-up: lowest volume of last 30 sessions
vols = [float(b.volume) for b in bars[-self._vl:]]
today_vol = vols[-1]
if today_vol <= 0:
return None
if today_vol > min(vols[:-1]):
return None
# 2. Close in bottom quarter of 20-day range
hi, lo = self._width(bars, n - 1)
width = hi - lo
if width <= 0:
return None
pos = (close - lo) / width
if pos > self._bf:
return None
# 3. Range width within tolerance of its 100-day median
widths = []
for j in range(n - self._ml, n):
h, l = self._width(bars, j)
widths.append(h - l)
widths.sort()
m = len(widths)
med = widths[m // 2] if m % 2 == 1 else (widths[m // 2 - 1] + widths[m // 2]) / 2.0
if med <= 0 or abs(width / med - 1.0) > self._wt:
return None
# 4. Real trend tests
closes = [float(b.close) for b in bars]
s50 = sma(closes, 50)
s50_prev = sma(closes[:-20], 50)
s100 = sma(closes, 100)
if s50 is None or s50_prev is None or s100 is None or s50_prev <= 0 or s100 <= 0:
return None
slope = float(s50) / float(s50_prev) - 1.0
if abs(slope) > self._slope:
return None
dev = close / float(s100) - 1.0
if abs(dev) > self._dev:
return None
phi, plo = self._width(bars, n - 1 - self._rl)
overlap = min(hi, phi) - max(lo, plo)
overlap_frac = overlap / width
if overlap_frac < self._ov:
return None
mid = (hi + lo) / 2.0
pmid = (phi + plo) / 2.0
if abs(mid - pmid) > 0.35 * width:
return None
# 5. Levels: stop just under range low, target range midpoint
a = atr(bars, 14)
if a is None or float(a) <= 0:
return None
a = float(a)
stop_f = min(lo, float(cur.low)) - self._buf * a
risk = close - stop_f
if risk <= 0 or risk > 2.0 * a:
return None
target_f = mid
reward = target_f - close
if reward <= 0:
return None
rr_f = reward / risk
if rr_f < self._min_rr:
return None
entry = cur.close
stop = Decimal(str(round(stop_f, 4)))
target = Decimal(str(round(target_f, 4)))
if not (stop < entry < target):
return None
rr = ((target - entry) / (entry - stop)).quantize(Decimal("0.01"))
if rr < Decimal("1.5"):
return None
# Strength
avg_vol = sum(vols[:-1]) / max(len(vols) - 1, 1)
dry = 1.0 - today_vol / max(avg_vol, 1.0)
vol_score = min(35, max(0, int(dry * 60)))
flat = 1.0 - min(1.0, abs(slope) / self._slope)
trend_score = min(35, max(0, int(flat * 18 + min(1.0, overlap_frac) * 17)))
loc_score = min(15, max(0, int((1.0 - pos / self._bf) * 15)))
rr_score = min(15, max(0, int((rr_f - self._min_rr) * 10)))
strength = max(0, min(100, vol_score + trend_score + loc_score + rr_score))
thesis = (
f"Lowest volume in {self._vl} sessions with close at {pos:.0%} of a trendless {self._rl}-day range "
f"(width {width / med:.2f}x median, SMA50 slope {slope:+.1%}, overlap {overlap_frac:.0%}); "
f"supply exhausted at range edge, long toward midpoint {target_f:.2f}, stop under range low {stop_f:.2f}."
)
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr,
signal_strength=int(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.
Describe it in plain words and get the same honest test in about a minute.