Short after 4 of 5 weak closes, below 50-day average
Entry at latest close if at least 4 of the last 5 closes were in the bottom 25% of their day's range, close is below the 50-day SMA, and the 10-day return is above -3.0x ATR(14) percent (not already capitulated). Stop = highest high of the last 5 bars plus 0.2x ATR(14). Target = entry minus 2x ATR(14).
Persistent closes at the bottom of the day's range show large sellers working multi-day orders into the close, a footprint of institutional distribution that is compelled by mandate or liquidation. Four of five closes in the bottom 25% of range below the 50-day average marks an ongoing sell program likely to continue.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.227R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.143R
By trade and by day, sized to 362 rules
What the numbers say
On the laggard stocks this short lost −0.227R a trade after costs over 500 trades (−0.143R before costs); the winners lost −0.306R. It trailed random dates in flat markets (−0.466R vs −0.1362R) and bear markets (−0.553R vs −0.2464R), and matched them in bull markets (−0.090R vs −0.101R).
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 | 328 | −0.090R | −1.33 | −1.19 · 278d | −0.101R · beats 50% | −0.291R |
| Flat | 125 | −0.466R | −4.92 | −3.72 · 93d | −0.136R · beats 0% | −0.351R |
| Bear | 47 | −0.553R | −3.88 | −3.29 · 32d | −0.246R · beats 0% | −0.187R |
| All | 500 | −0.227R | −0.123R | −0.306R |
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.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 CloseLocationPersistenceDistributionShort:
name = "close_location_persistence_distribution_short"
description = "Short persistent bottom-of-range closes below the 50-SMA before capitulation"
def __init__(self, window: int = 5, min_low_closes: int = 4, clv_max: float = 0.25,
sma_len: int = 50, ret_len: int = 10, capit_atr_mult: float = 3.0,
stop_atr_buf: float = 0.2, target_atr_mult: float = 2.0,
min_rr: float = 1.55, max_risk_atr: float = 3.0) -> None:
self._window = window
self._min_low = min_low_closes
self._clv_max = clv_max
self._sma_len = sma_len
self._ret_len = ret_len
self._capit = capit_atr_mult
self._buf = stop_atr_buf
self._tgt_mult = target_atr_mult
self._min_rr = min_rr
self._max_risk_atr = max_risk_atr
@staticmethod
def _clv(b: Bar):
rng = b.high - b.low
if rng <= 0:
return None
return float((b.close - b.low) / rng)
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = max(self._sma_len, self._ret_len + 1, 30) + 5
if len(bars) < need:
return None
current = bars[-1]
entry = current.close
if entry <= 0:
return None
recent = bars[-self._window:]
clvs = []
low_count = 0
for b in recent:
c = self._clv(b)
if c is None:
clvs.append(0.5)
continue
clvs.append(c)
if c <= self._clv_max:
low_count += 1
if low_count < self._min_low:
return None
closes = [float(b.close) for b in bars]
sma50 = sma(closes, self._sma_len)
if sma50 is None or sma50 <= 0 or float(entry) >= sma50:
return None
atr_val = atr(bars, 14)
if atr_val is None or atr_val <= 0:
return None
atr_f = float(atr_val)
atr_dec = Decimal(str(atr_val))
ref = closes[-(self._ret_len + 1)]
if ref <= 0:
return None
ret_pct = (closes[-1] / ref - 1.0) * 100.0
atr_pct = atr_f / closes[-1] * 100.0
if ret_pct <= -self._capit * atr_pct:
return None
hh5 = max(b.high for b in recent)
stop = hh5 + Decimal(str(self._buf)) * atr_dec
risk = stop - entry
if risk <= 0:
return None
if float(risk) > self._max_risk_atr * atr_f:
return None
# Operator target is 2 ATR; extend only when needed to clear the
# platform's 1.5 R:R floor instead of rejecting wide-range setups.
reward = max(Decimal(str(self._tgt_mult)) * atr_dec, Decimal(str(self._min_rr)) * risk)
target = entry - reward
if target <= 0 or not (target < entry < stop):
return None
rr = (entry - target) / risk
if rr <= Decimal("1.5"):
return None
# Strength components
persist_score = 30 if low_count >= 5 else 18
avg_clv = sum(clvs) / len(clvs)
clv_score = int(max(0.0, min(1.0, (0.35 - avg_clv) / 0.35)) * 25)
dist_atr = (sma50 - closes[-1]) / atr_f
trend_score = int(max(0.0, min(1.0, dist_atr / 3.0)) * 20)
vols = [float(b.volume) for b in bars[-25:-5]]
avg_vol = sum(vols) / len(vols) if vols else 0.0
rec_vol = sum(float(b.volume) for b in recent) / len(recent)
vol_ratio = rec_vol / avg_vol if avg_vol > 0 else 1.0
vol_score = int(max(0.0, min(1.0, (vol_ratio - 0.8) / 0.8)) * 25)
strength = max(0, min(100, persist_score + clv_score + trend_score + vol_score))
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=strength,
thesis=(f"{low_count}/{self._window} recent closes in the bottom {int(self._clv_max*100)}% of range "
f"(avg CLV {avg_clv:.2f}) below the 50-SMA, 10d return {ret_pct:.1f}% not yet capitulated: "
f"persistent sell-into-close distribution likely to continue."),
)
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.