Skip to content
The Casebook · An idea an AI invented

Buy thin-volume dips above the 200-day average, 1.5 ATR stop

Entry at latest close if the 3-day return is at most -6%, the stock's 20-day average dollar volume (close times volume) is below its 250-day median, the close is above the 200-day SMA, and today's close is above the open. Stop 1.5 ATR below. Target 2.2 ATR above.
Why the AI thought it might work

Thin-liquidity stocks that fell 6% or more in 3 days after steady selling see short-horizon reversal because liquidity providers demand a premium for holding inventory and are compensated as flows normalize within days. In a neutral market regime, where there is no directional trend to compound the decline, the reversal effect is cleanest.

VerdictTested Nov 22, 2026

Too rare to judge

Too few trades in 15 years to tell anything either way.

  • 10 trades on the laggard stocks in 15 years; 30 are needed to judge.
Trades on the laggards
10

42 large US stocks, 15 years

Per trade, after costs
−0.568R

Before costs −0.490R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

The rule produced only 10 trades on the laggard stocks in 15 years; 30 are needed to judge. Those trades averaged −0.568R after costs, against −0.113R on the winners. Bull trades averaged −0.663R and flat ones −0.426R, with no bear trades, so the sample is too small to support a 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.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull6−0.663R−1.52−1.52 · 6d−0.080R · beats 15%−1.154R
Flat4−0.426R−0.68−0.68 · 4d+0.175R · beats 35%+1.449R
Bear0—————
All10−0.568R+0.022R−0.113R

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.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 code
from decimal import Decimal
import math

from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate


class MidweekLaggard3DayDropReversalLong:
    name = "midweek_laggard_3day_drop_reversal_long"
    description = "Thin-liquidity stock above 200-SMA down >=6% in 3 days with a green reversal close; buy close for short-horizon liquidity-premium reversal."

    def __init__(self, drop_pct: float = 0.06, ret_days: int = 3, dv_short: int = 20, dv_long: int = 250, sma_len: int = 200, atr_len: int = 14, max_stop_atr: float = 1.45, min_stop_atr: float = 0.8, stop_buffer_atr: float = 0.25, target_atr: float = 2.2, weekday_only: int = -1) -> None:
        self._drop = drop_pct
        self._n = ret_days
        self._dvs = dv_short
        self._dvl = dv_long
        self._sma = sma_len
        self._atr = atr_len
        self._max_stop = max_stop_atr
        self._min_stop = min_stop_atr
        self._buf = stop_buffer_atr
        self._tgt = target_atr
        self._weekday = weekday_only

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._dvl, self._sma) + self._n + 5
        if len(bars) < need:
            return None
        cur = bars[-1]
        close = float(cur.close)
        opn = float(cur.open)
        if close <= 0 or close <= opn:
            return None
        if self._weekday >= 0:
            try:
                if cur.timestamp.weekday() != self._weekday:
                    return None
            except Exception:
                return None
        base = float(bars[-1 - self._n].close)
        if base <= 0:
            return None
        ret = close / base - 1.0
        if ret > -self._drop:
            return None
        closes = [float(b.close) for b in bars]
        sma_v = sma(closes, self._sma)
        if sma_v is None or close <= float(sma_v):
            return None
        dvs = [float(b.close) * float(b.volume) for b in bars[-self._dvl:]]
        srt = sorted(dvs)
        m = len(srt)
        if m == 0:
            return None
        med = srt[m // 2] if m % 2 == 1 else 0.5 * (srt[m // 2 - 1] + srt[m // 2])
        avg20 = sum(dvs[-self._dvs:]) / self._dvs
        if med <= 0 or avg20 >= med:
            return None
        a = atr(bars, self._atr)
        if a is None:
            return None
        a = float(a)
        if not math.isfinite(a) or a <= 0:
            return None
        swing_low = min(float(b.low) for b in bars[-(self._n + 1):])
        struct_dist = close - (swing_low - self._buf * a)
        stop_dist = min(max(struct_dist, self._min_stop * a), self._max_stop * a)
        if stop_dist <= 0:
            return None
        entry = cur.close
        stop = Decimal(str(round(close - stop_dist, 4)))
        target = Decimal(str(round(close + self._tgt * a, 4)))
        if not (stop < entry < target) or stop <= 0:
            return None
        risk = entry - stop
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None
        drop_score = min(35, max(0, int((-ret - self._drop) / 0.06 * 35) + 10))
        liq_ratio = avg20 / med
        liq_score = min(25, max(0, int((1.0 - liq_ratio) * 50)))
        rng = max(float(cur.high) - float(cur.low), 1e-6)
        cpos = (close - float(cur.low)) / rng
        close_score = min(20, max(0, int(cpos * 20)))
        ext = (close - float(sma_v)) / float(sma_v)
        trend_score = min(20, max(0, int(ext * 200)))
        strength = max(0, min(100, drop_score + liq_score + close_score + trend_score))
        thesis = (f"{self._n}-day return {ret*100:.1f}% in a thin name (20d $vol {liq_ratio:.2f}x of 250d median), "
                  f"still above 200-SMA, green reversal close; liquidity-provider premium should mean-revert within days. "
                  f"Stop under selloff low ({stop_dist/a:.2f} ATR), target 2.2 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.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Buy thin-volume dips above the 200-day average, 1.5 ATR stop: Too rare to judge · EdgeProven