Bounce when a stock far below its 50-day average calms
Require close below the 200-SMA, close at least 3 x ATR(14) below the 50-SMA, 10-day realised vol (std of daily returns) lower than 0.85x its value 5 bars ago, and today's close above the prior close. Enter long at the latest close; stop 1.5 x ATR(14) below; target the 20-SMA or 4 x ATR(14), whichever is smaller.
In bear regimes, volatility-targeting and risk-parity funds mechanically cut exposure when realized volatility rises, creating sustained selling pressure in high-vol stocks that overshoots fundamentals. When the stock is more than 3 ATR below its 50-SMA and realized volatility has begun to fall from its peak, the mechanical selling ends and the exposure is rebuilt, offering a bounce toward the average.
Indistinguishable from luck
It looks positive, but not more than chance would produce at this many tries, or than the same plan on random dates.
- Positive (+0.281R a trade), but no market clears t > 2.95 by trade and by day.
42 large US stocks, 15 years
Before costs +0.361R
By trade and by day, sized to 362 rules
What the numbers say
On laggards the idea averaged +0.281R a trade after costs over 149 trades. Only bull markets came close to the t 2.95 bar (t 3.18 by trade, 2.92 by day, 100% of random draws beaten); flat was 0.056R and bear −0.265R. With 362 rules searched, no market clearing the bar leaves it indistinguishable from luck.
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 | 88 | +0.496R | 3.18 | 2.92 · 84d | −0.098R · beats 100% | +0.423R |
| Flat | 45 | +0.056R | 0.30 | 0.22 · 41d | −0.063R · beats 70% | +0.005R |
| Bear | 16 | −0.265R | −0.83 | −0.84 · 12d | +0.202R · beats 10% | +0.060R |
| All | 149 | +0.281R | −0.055R | +0.207R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 5.3 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
import math
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate
class ExtremeDistanceBelow50smaDeleveragingLong:
name = "extreme_distance_below_50sma_deleveraging_long"
description = "Long a stock >=3 ATR below its 50-SMA (under the 200-SMA) once 10-day realized vol has fallen 15% from 5 bars ago and today closed up."
def __init__(self, atr_period: int = 14, dist_atr: float = 3.0, vol_window: int = 10, vol_lag: int = 5, vol_ratio: float = 0.85, stop_atr: float = 1.5, target_atr_cap: float = 4.0, min_rr: float = 1.51) -> None:
self._atr_period = atr_period
self._dist_atr = dist_atr
self._vol_window = vol_window
self._vol_lag = vol_lag
self._vol_ratio = vol_ratio
self._stop_atr = stop_atr
self._target_atr_cap = target_atr_cap
# Platform contract: orchestrator discards R:R <= 1.5, so this is the loosest usable floor.
self._min_rr = min_rr
@staticmethod
def _std(vals):
n = len(vals)
if n < 2:
return None
m = sum(vals) / n
var = sum((v - m) ** 2 for v in vals) / (n - 1)
return math.sqrt(var)
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < 220:
return None
cur = bars[-1]
prev = bars[-2]
if cur.close <= prev.close:
return None
closes = [float(b.close) for b in bars]
c = closes[-1]
if c <= 0:
return None
sma200 = sma(closes, 200)
sma50 = sma(closes, 50)
sma20 = sma(closes, 20)
if sma200 is None or sma50 is None or sma20 is None:
return None
sma200 = float(sma200)
sma50 = float(sma50)
sma20 = float(sma20)
if c >= sma200:
return None
a = atr(bars, self._atr_period)
if a is None:
return None
a = float(a)
if a <= 0:
return None
dist = (sma50 - c) / a
if dist < self._dist_atr:
return None
# realized vol: std of daily returns, today vs vol_lag bars ago
need = self._vol_window + self._vol_lag + 1
window = closes[-need:]
rets = []
for i in range(1, len(window)):
if window[i - 1] <= 0:
return None
rets.append(window[i] / window[i - 1] - 1.0)
vol_now = self._std(rets[-self._vol_window:])
vol_then = self._std(rets[-(self._vol_window + self._vol_lag):-self._vol_lag])
if vol_now is None or vol_then is None or vol_then <= 0:
return None
vr = vol_now / vol_then
if vr >= self._vol_ratio:
return None
entry = cur.close
atr_dec = Decimal(str(a))
stop = entry - Decimal(str(self._stop_atr)) * atr_dec
if stop <= 0:
return None
t_sma = Decimal(str(sma20))
t_cap = entry + Decimal(str(self._target_atr_cap)) * atr_dec
target = min(t_sma, t_cap)
if target <= entry:
return None
risk = entry - stop
if risk <= 0:
return None
rr = (target - entry) / risk
if rr < Decimal(str(self._min_rr)):
return None
# strength: stretch (0-40), vol decay (0-35), close position/volume (0-25)
stretch_score = max(0, min(40, int((dist - self._dist_atr) / 3.0 * 40) + 10))
decay_score = max(0, min(35, int((self._vol_ratio - vr) / 0.35 * 35) + 5))
rng = float(cur.high - cur.low)
close_pos = (float(cur.close - cur.low) / rng) if rng > 0 else 0.5
avg_vol = sum(float(b.volume) for b in bars[-21:-1]) / 20.0
vol_mult = float(cur.volume) / avg_vol if avg_vol > 0 else 1.0
cp_score = max(0, min(15, int(close_pos * 15)))
v_score = max(0, min(10, int((vol_mult - 0.8) * 10)))
strength = max(0, min(100, stretch_score + decay_score + cp_score + v_score))
thesis = (
f"Deleveraging overshoot: close {dist:.1f} ATR below 50-SMA and under 200-SMA; "
f"10d realized vol fell to {vr:.2f}x its level {self._vol_lag} bars ago and today closed up, "
f"suggesting vol-targeting selling is exhausting. Target min(20-SMA, {self._target_atr_cap:g} ATR)."
)
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
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.