Short after a 7-day, 12% surge on fading volume
Condition: stock has closed up 7 or more consecutive sessions, the streak return is at least 12%, latest close is more than 2.5x ATR(14) above the 20-day SMA, and volume on the last bar is below the 5-day average (fading participation). Entry short at close. Stop 1.2x ATR(14) above close. Target the 10-day SMA.
Retail momentum chasers and short-covering produce long unbroken up-streaks that outrun fundamental demand; once the marginal buyer is exhausted (streak length at multi-year extremes for this stock) there is no compelled buyer left, while profit-takers with embedded gains supply into any strength. Per-stock streak statistics make the extreme identifiable from daily closes alone.
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.
- The rule as written never fired on any of the 42 stocks: it may be stricter than you meant.
42 large US stocks, 15 years
Before costs —
By trade and by day, sized to 362 rules
What the numbers say
The rule produced 0 trades on the laggards over 15 years, and it never fired on any of the 42 stocks, so there are no R values, t values or market splits to read. The verdict is 'Too rare to judge' because 30 trades are needed on the laggards and there were none. The conditions may be stricter than intended.
How it was tested
The rule as written, coded once, run on every stock the same way.
- Side
- Short
- 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 | — | — | — | — | — |
| Flat | 0 | — | — | — | — | — |
| Bear | 0 | — | — | — | — | — |
| All | 0 | — | — | — |
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
class ExtremeUpStreakExhaustionShort:
name = "extreme_up_streak_exhaustion_short"
description = "Short a record-for-this-stock up-close streak that is overextended above the 20-SMA on fading volume, targeting the 10-SMA"
def __init__(self, min_streak: int = 6, min_streak_return: float = 0.10, history_lookback: int = 756, ext_atr_mult: float = 2.5, stop_atr_mult: float = 1.2, vol_avg_len: int = 5, min_rr: float = 1.5) -> None:
self._min_streak = min_streak
self._min_ret = min_streak_return
self._lookback = history_lookback
self._ext_mult = ext_atr_mult
self._stop_mult = stop_atr_mult
self._vol_len = vol_avg_len
self._min_rr = min_rr
@staticmethod
def _max_run(closes: list) -> int:
best = 0
run = 0
for j in range(1, len(closes)):
if closes[j] > closes[j - 1]:
run += 1
if run > best:
best = run
else:
run = 0
return best
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
n = len(bars)
if n < self._lookback + 60:
return None
closes = [float(b.close) for b in bars]
# Current up-close streak ending today
streak = 0
i = n - 1
while i > 0 and closes[i] > closes[i - 1]:
streak += 1
i -= 1
if streak < self._min_streak:
return None
base_idx = n - 1 - streak
base_close = closes[base_idx]
if base_close <= 0:
return None
streak_ret = closes[-1] / base_close - 1.0
if streak_ret < self._min_ret:
return None
# Per-stock extreme gate: streak must match or exceed the longest
# streak in the prior lookback window (window ends at the streak base bar)
start = base_idx - self._lookback
if start < 0:
return None
hist_max = self._max_run(closes[start:base_idx + 1])
if streak < hist_max:
return None
atr_val = atr(bars, 14)
if atr_val is None or float(atr_val) <= 0:
return None
atr_f = float(atr_val)
sma20 = sum(closes[-20:]) / 20.0
sma10 = sum(closes[-10:]) / 10.0
close_f = closes[-1]
ext_atr = (close_f - sma20) / atr_f
if ext_atr <= self._ext_mult:
return None
# Fading participation: today's volume below prior N-day average
prior_vols = [float(b.volume) for b in bars[-(self._vol_len + 1):-1]]
avg_vol = sum(prior_vols) / len(prior_vols) if prior_vols else 0.0
cur_vol = float(bars[-1].volume)
if avg_vol <= 0 or cur_vol >= avg_vol:
return None
entry = bars[-1].close
stop = entry + Decimal(str(self._stop_mult)) * Decimal(str(atr_f))
target = Decimal(str(sma10))
if not (target < entry < stop):
return None
risk = stop - entry
reward = entry - target
if risk <= 0 or reward <= 0:
return None
rr = reward / risk
if rr < Decimal(str(self._min_rr)):
return None
# Strength components
excess = streak - hist_max
streak_score = min(30, 15 + excess * 8 + max(0, int((streak_ret - self._min_ret) * 100)))
ext_score = min(30, max(0, int((ext_atr - self._ext_mult) * 15)))
fade = 1.0 - cur_vol / avg_vol
vol_score = min(20, max(0, int(fade * 50)))
rng = float(bars[-1].high) - float(bars[-1].low)
close_pos = (close_f - float(bars[-1].low)) / rng if rng > 0 else 0.5
close_score = min(20, max(0, int((1.0 - close_pos) * 20)))
strength = int(max(0, min(100, streak_score + ext_score + vol_score + close_score)))
thesis = (
f"{streak} straight up closes (+{streak_ret * 100:.1f}%), matching/exceeding the "
f"{hist_max}-day max streak of the prior {self._lookback} bars; close is {ext_atr:.1f} ATR "
f"above the 20-SMA on volume {fade * 100:.0f}% below the {self._vol_len}-day average. "
f"Marginal momentum/short-covering buyers are likely exhausted; fade toward the 10-SMA."
)
return Candidate(
ticker=ticker,
side="sell",
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.
Describe it in plain words and get the same honest test in about a minute.