Skip to content
The Casebook · An idea an AI invented

Quarterly rebalance Friday, high-volume drop, long

Entry at latest close if the latest bar is the third Friday of March, June, September or December, the day's volume is at least 2.0x its 20-day average, and the day's return is below -1.0x ATR(14) percent. Stop = day's low minus 0.3x ATR(14). Target = entry plus 1.7x ATR(14).
Why the AI thought it might work

Quarterly index rebalances (third Friday of Mar/Jun/Sep/Dec) force passive funds to trade at the close with large volume, pushing prices temporarily away from value in names with large weight changes; the displacement reverts the next sessions as liquidity providers who absorbed it are paid. A stock with an abnormally large volume and decline on that day shows the forced flow.

VerdictTested Nov 22, 2026

Killed by costs

There is something there before trading costs; after them, too little is left to count (under 0.04R a trade).

  • +0.189R a trade before costs, −0.044R after the spread and the selection haircut.
Trades on the laggards
39

42 large US stocks, 15 years

Per trade, after costs
−0.044R

Before costs +0.189R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

Across 39 laggard trades the idea made +0.189R before costs but −0.044R after them. In bull markets it came to 0.087R, in flat markets −0.06R and in bear markets −0.404R. The costs absorb the small edge, so the verdict is killed by costs.

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
Bull23+0.087R0.17−0.44 · 12d−0.201R · beats 75%+0.952R
Flat8−0.060R−0.060.49 · 4d−0.139R · beats 55%−1.074R
Bear8−0.404R−0.72−0.38 · 5d−0.282R · beats 50%+1.467R
All39−0.044R−0.205R+0.687R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 6.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

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


class IndexRebalanceVolumeSurgeFadeLong:
    name = "index_rebalance_week_volume_surge_fade_long"
    description = "Fade a high-volume >1 ATR decline on the quarterly index-rebalance third Friday, entering long at the close."

    def __init__(self, vol_mult: float = 2.0, drop_atr_mult: float = 1.0, stop_atr_buffer: float = 0.3, target_atr_mult: float = 1.7, atr_period: int = 14, vol_lookback: int = 20, min_bars: int = 40, min_rr: float = 1.5) -> None:
        self._vol_mult = vol_mult
        self._drop_atr_mult = drop_atr_mult
        self._stop_buf = stop_atr_buffer
        self._target_mult = target_atr_mult
        self._atr_period = atr_period
        self._vol_lookback = vol_lookback
        self._min_bars = min_bars
        self._min_rr = min_rr

    @staticmethod
    def _is_rebalance_friday(ts) -> bool:
        try:
            month = ts.month
            day = ts.day
            wd = ts.weekday()
        except Exception:
            return False
        if month not in (3, 6, 9, 12):
            return False
        return wd == 4 and 15 <= day <= 21

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < max(self._min_bars, self._vol_lookback + 2, self._atr_period + 2):
            return None
        current = bars[-1]
        prev = bars[-2]
        if not self._is_rebalance_friday(current.timestamp):
            return None

        # ATR from prior bars only (pre-event volatility baseline)
        atr_val = atr(bars[:-1], self._atr_period)
        if atr_val is None:
            return None
        atr_f = float(atr_val)
        if atr_f <= 0:
            return None

        prev_close = float(prev.close)
        close_f = float(current.close)
        if prev_close <= 0 or close_f <= 0:
            return None

        # Volume surge vs prior 20-day average
        window = bars[-(self._vol_lookback + 1):-1]
        avg_vol = sum(float(b.volume) for b in window) / len(window)
        if avg_vol <= 0:
            return None
        vol_ratio = float(current.volume) / avg_vol
        if vol_ratio < self._vol_mult:
            return None

        # Day's return below -1.0x ATR percent
        ret_pct = (close_f / prev_close - 1.0) * 100.0
        atr_pct = atr_f / prev_close * 100.0
        if ret_pct >= -self._drop_atr_mult * atr_pct:
            return None

        atr_dec = Decimal(str(atr_f))
        entry = current.close
        stop = current.low - Decimal(str(self._stop_buf)) * atr_dec
        target = entry + Decimal(str(self._target_mult)) * atr_dec
        if not (stop < entry < target):
            return None
        risk = entry - stop
        if risk <= 0:
            return None
        rr = (target - entry) / risk
        if rr <= Decimal(str(self._min_rr)):
            return None

        # Strength: volume abnormality, drop size in ATRs, close location (close near low = forced closing flow)
        vol_score = min(40.0, max(0.0, (vol_ratio - self._vol_mult) / 3.0 * 40.0 + 10.0))
        drop_atrs = -ret_pct / atr_pct if atr_pct > 0 else 0.0
        drop_score = min(35.0, max(0.0, (drop_atrs - self._drop_atr_mult) / 2.0 * 35.0 + 8.0))
        rng = float(current.high - current.low)
        close_pos = (close_f - float(current.low)) / rng if rng > 0 else 0.5
        close_score = min(25.0, max(0.0, (1.0 - close_pos) * 25.0))
        strength = int(max(0, min(100, round(vol_score + drop_score + close_score))))

        thesis = (
            f"Quarterly index-rebalance Friday: fell {ret_pct:.2f}% ({drop_atrs:.2f} ATR) on {vol_ratio:.1f}x avg volume, "
            "consistent with forced passive closing flow; expecting reversion as liquidity providers are paid. "
            f"Stop below day low minus {self._stop_buf} ATR, target +{self._target_mult} ATR."
        )

        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=thesis,
            asset_class="equity",
        )

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