Skip to content
The Casebook · An idea an AI invented

Holiday-window low-volume dip buy, ATR stop and target

Fire only in the calendar windows Nov 22-Dec 2, Dec 20-Dec 31, and Jun 30-Jul 8. Require today's volume <= 0.7x the 50-bar average, 20-day return <= -8%, close within 5% of the 20-bar low, and today's close above the prior close. Enter long at the latest close; stop 2 x ATR(14) below; target 3 x ATR(14) above.
Why the AI thought it might work

In the weeks around Thanksgiving, Christmas and July 4th volume collapses and institutional sellers are largely absent, while retail dip buyers and window-dressing bids persist. Stocks that are down sharply over the prior 20 days into low-volume holiday sessions face less supply, so mean reversion is more likely than in normal weeks; the volume collapse is visible in the stock's own bars and the calendar dates are known.

VerdictTested Nov 22, 2026

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.633R a trade), but no market clears t > 2.95 by trade and by day.
Trades on the laggards
39

42 large US stocks, 15 years

Per trade, after costs
+0.633R

Before costs +0.704R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On 39 laggard trades the idea averaged +0.633R after costs, beating random dates in bull (+0.602R) and bear (+0.792R) markets. But no market clears the t > 2.95 bar: the best is 2.64 by trade and 2.28 by day. Flat has only 3 trades (t 0.33), so the result stays 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.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull24+0.602R2.642.25 · 20d−0.011R · beats 100%+0.872R
Flat3+0.242R0.330.33 · 3d+0.069R · beats 60%−0.424R
Bear12+0.792R2.442.28 · 8d+0.080R · beats 95%+1.473R
All39+0.633R+0.023R+0.997R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 8.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, 20 times; the idea must beat 95% of those draws.

The scanner we wroteShow the code
from decimal import Decimal

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


class HolidayVolumeCollapseLaggardBounce:
    name = "holiday_week_volume_collapse_laggard_bounce_long"
    description = "Holiday-window thin-volume up-close in a 20-day laggard near its 20-bar low; mean-reversion long."

    def __init__(self, vol_ratio_max: float = 0.7, ret20_max: float = -0.08,
                 near_low_pct: float = 0.05, stop_atr: float = 2.0,
                 target_atr: float = 3.05, target_cap_atr: float = 4.0) -> None:
        self._vol_ratio_max = vol_ratio_max
        self._ret20_max = ret20_max
        self._near_low_pct = near_low_pct
        self._stop_atr = stop_atr
        self._target_atr = target_atr
        self._target_cap_atr = target_cap_atr

    @staticmethod
    def _in_window(month: int, day: int) -> str | None:
        if (month == 11 and day >= 22) or (month == 12 and day <= 2):
            return "thanksgiving"
        if month == 12 and day >= 20:
            return "year_end"
        if (month == 6 and day >= 30) or (month == 7 and day <= 8):
            return "july4"
        return None

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < 60:
            return None
        cur = bars[-1]
        prev = bars[-2]
        ts = cur.timestamp
        window = self._in_window(ts.month, ts.day)
        if window is None:
            return None
        if cur.close <= prev.close:
            return None

        # Stock-specific thin session vs its own 50-bar average (excluding today)
        vols = [float(b.volume) for b in bars[-51:-1]]
        avg50 = sum(vols) / len(vols)
        if avg50 <= 0:
            return None
        vol_ratio = float(cur.volume) / avg50
        if vol_ratio > self._vol_ratio_max:
            return None

        # 20-day drawdown
        base = bars[-21].close
        if base <= 0:
            return None
        ret20 = float((cur.close - base) / base)
        if ret20 > self._ret20_max:
            return None

        # Near 20-bar low (including today)
        low20 = min(b.low for b in bars[-20:])
        if low20 <= 0:
            return None
        dist_low = float((cur.close - low20) / low20)
        if dist_low > self._near_low_pct:
            return None

        atr_val = atr(bars, 14)
        if atr_val is None or atr_val <= 0:
            return None
        a = Decimal(str(atr_val))
        entry = cur.close
        stop = entry - Decimal(str(self._stop_atr)) * a
        if stop <= 0:
            return None

        # Target: spec 3xATR (nudged to 3.05 so R:R clears the strict >1.5 filter);
        # extend toward the 20-SMA mean-reversion anchor if higher, capped.
        tgt_floor = entry + Decimal(str(self._target_atr)) * a
        tgt_cap = entry + Decimal(str(self._target_cap_atr)) * a
        target = tgt_floor
        sma20 = sma([b.close for b in bars], 20)
        if sma20 is not None:
            s = Decimal(str(sma20))
            if s > target:
                target = min(s, tgt_cap)
        risk = entry - stop
        if risk <= 0 or target <= entry:
            return None
        rr = (target - entry) / risk
        if rr <= Decimal("1.5"):
            return None

        # Strength: washout depth, volume dryness, close position, proximity to low
        depth_score = min(30, max(0, int((-ret20 - 0.08) * 250 + 10)))
        dry_score = min(25, max(0, int((self._vol_ratio_max - vol_ratio) / self._vol_ratio_max * 35 + 5)))
        rng = cur.high - cur.low
        close_pos = float((cur.close - cur.low) / rng) if rng > 0 else 0.5
        close_score = min(25, max(0, int(close_pos * 25)))
        low_score = min(20, max(0, int((self._near_low_pct - dist_low) / self._near_low_pct * 20)))
        strength = max(0, min(100, depth_score + dry_score + close_score + low_score))

        label = {"thanksgiving": "Thanksgiving", "year_end": "post-Dec-20 year-end (tax-loss selling largely exhausted)", "july4": "July 4th"}[window]
        thesis = (
            f"{label} window: down {ret20*100:.1f}% over 20d, {dist_low*100:.1f}% above 20-bar low, "
            f"up-close on {vol_ratio:.2f}x 50-bar volume; institutional supply absent, expect mean reversion. "
            f"Stop 2xATR, target ~3xATR or 20-SMA."
        )
        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
Holiday-window low-volume dip buy, ATR stop and target: Indistinguishable from luck · EdgeProven