20-day closing low on fading volume, 100-day SMA rising
Entry at latest close if close is a 20-day closing low, volume of the last 3 bars is declining and each is below the 20-day average volume, and the 100-day SMA is rising. Stop = entry minus 1.4*ATR(14). Target = entry + 2.0*ATR(14).
In a bull regime, a 20-day closing low reached on volume below the 20-day average and falling for 3 days indicates sellers lack conviction and are exhausted rather than informed. Value-minded buyers and dip-buying funds step in and the pullback resolves up. Differs from capitulation setups by requiring dry-up not spike.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.156R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.046R
By trade and by day, sized to 362 rules
What the numbers say
On the 22 laggards, 113 trades averaged −0.156R after costs (−0.046R before costs). Bull-market trades came in at −0.179R against −0.0798R for random dates, beating 20% of random draws; bear trades were −0.647R. The 20 winners sat near flat at −0.015R, so the laggard result drives 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.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 89 | −0.179R | −1.32 | −1.23 · 88d | −0.080R · beats 20% | −0.036R |
| Flat | 19 | +0.082R | 0.24 | 0.15 · 17d | +0.146R · beats 50% | +0.029R |
| Bear | 5 | −0.647R | −1.19 | −1.19 · 5d | +0.154R · beats 5% | +0.342R |
| All | 113 | −0.156R | −0.031R | −0.015R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 16.2 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, sma
from scanners.base import Candidate
class TwentyDayLowVolumeDryupLong:
name = "twenty_day_low_volume_dryup_long"
description = "20-day closing low on 3 declining below-average-volume bars with a rising 100-SMA: seller exhaustion long"
def __init__(self, low_lookback: int = 20, vol_lookback: int = 20, sma_period: int = 100,
slope_bars: int = 10, stop_atr: float = 1.4, target_atr: float = 2.25,
low_buffer_atr: float = 0.25, max_risk_atr: float = 1.6, min_rr: float = 1.55) -> None:
self._low_lookback = low_lookback
self._vol_lookback = vol_lookback
self._sma_period = sma_period
self._slope_bars = slope_bars
self._stop_atr = stop_atr
self._target_atr = target_atr
self._low_buffer_atr = low_buffer_atr
self._max_risk_atr = max_risk_atr
self._min_rr = min_rr
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._sma_period + self._slope_bars + 5, self._vol_lookback + 5, self._low_lookback + 5, 130)
if len(bars) < need:
return None
current = bars[-1]
closes = [b.close for b in bars]
# 1) Close is a 20-day closing low
prior_closes = closes[-self._low_lookback:-1]
if current.close > min(prior_closes):
return None
# 2) Last 3 volumes strictly declining, each below the prior 20-day average
v1 = float(bars[-3].volume)
v2 = float(bars[-2].volume)
v3 = float(bars[-1].volume)
if not (v1 > v2 > v3):
return None
base = bars[-(self._vol_lookback + 3):-3]
avg_vol = sum(float(b.volume) for b in base) / len(base)
if avg_vol <= 0:
return None
if v1 >= avg_vol or v2 >= avg_vol or v3 >= avg_vol:
return None
# 3) 100-SMA rising
sma_now = sma(closes, self._sma_period)
sma_prev = sma(closes[:-self._slope_bars], self._sma_period)
if sma_now is None or sma_prev is None or sma_prev <= 0:
return None
sma_now_f = float(sma_now)
sma_prev_f = float(sma_prev)
if sma_now_f <= sma_prev_f:
return None
atr_val = atr(bars, 14)
if atr_val is None or float(atr_val) <= 0:
return None
a = Decimal(str(atr_val))
entry = current.close
# Stop: operator's 1.4 ATR. Widened only if today's low minus a small
# buffer sits further away, so the stop is never inside today's range.
# Never tightened below 1.4 ATR.
base_stop = entry - Decimal(str(self._stop_atr)) * a
struct_stop = current.low - Decimal(str(self._low_buffer_atr)) * a
stop = min(base_stop, struct_stop)
risk = entry - stop
if risk <= 0 or risk > Decimal(str(self._max_risk_atr)) * a:
return None
# Target: 2.25 ATR (operator's 2.0 widened so the 1.4 ATR stop clears R:R),
# scaled up if structural risk is wider.
target = entry + max(Decimal(str(self._target_atr)) * a, Decimal(str(self._min_rr)) * risk)
if not (stop < entry < target):
return None
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
# Strength sub-scores
dry = v3 / avg_vol # lower = drier
dry_score = min(40, max(0, int((1.0 - dry) * 70)))
slope_pct = (sma_now_f - sma_prev_f) / sma_prev_f
trend_score = min(25, max(0, int(slope_pct * 1000)))
rng = current.high - current.low
close_pos = float((current.close - current.low) / rng) if rng > 0 else 0.5
close_score = min(20, max(0, int(close_pos * 20)))
dist = (float(entry) - sma_now_f) / float(a) # ATRs from the 100-SMA
loc_score = 15 if -2.0 <= dist <= 1.0 else (8 if -4.0 <= dist <= 2.5 else 0)
strength = max(0, min(100, dry_score + trend_score + close_score + loc_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"20-day closing low on 3 declining, below-average volume bars (last {dry:.2f}x avg) "
f"with a rising 100-SMA: sellers look exhausted, not informed; expect the dip to resolve up."),
asset_class="equity",
)
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.