Skip to content
The Casebook · An idea an AI invented

Strong first session after a holiday closure, long

Fire on the first session after any NYSE holiday closure (gap of 4+ calendar days between bars) if the close exceeds the prior close by at least 0.5 ATR(14) and is above the 20-day SMA. Enter long at close. Stop 1.5x ATR below; target 2.5x ATR above.
Why the AI thought it might work

Stocks that rise on the first session after a holiday closure carry accumulated weekend demand from retail and international participants who could not trade. With low-liquidity weekend positioning, strength on the reopening day reflects true demand that persists a few sessions.

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.113R a trade before costs, +0.014R after the spread and the selection haircut.
Trades on the laggards
293

42 large US stocks, 15 years

Per trade, after costs
+0.014R

Before costs +0.113R

Bar to clear
t > 2.95

By trade and by day, sized to 362 rules

What the numbers say

On the laggards, 293 trades averaged +0.113R before costs but only +0.014R after, and the t of 2.95 is the bar the idea had to clear. In bull markets it lost 0.146R a trade (t −1.53); the flat-market gain of 0.615R came from just 10 distinct days. Costs absorb nearly all the 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
Bull218−0.146R−1.53−1.60 · 54d−0.048R · beats 30%−0.089R
Flat46+0.615R2.971.35 · 10d−0.044R · beats 100%+0.592R
Bear29+0.258R1.01−0.11 · 8d−0.064R · beats 80%+0.700R
All293+0.014R−0.049R+0.054R

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 datetime import datetime, timedelta
import math

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


def _bar_time(b):
    try:
        return b.timestamp
    except AttributeError:
        try:
            return b.date
        except AttributeError:
            return None


class PostHolidayReopenStrengthLong:
    name = "post_holiday_reopen_strength_long"
    description = "Long the first session after a holiday closure (4+ calendar-day gap) that closes >=0.5 ATR up and above the 20-day SMA."

    def __init__(self, min_gap_days: int = 4, max_gap_days: int = 6, move_atr_mult: float = 0.5, stop_atr_mult: float = 1.5, target_atr_mult: float = 2.5, swing_lookback: int = 5, swing_buffer_atr: float = 0.25, min_bars: int = 60) -> None:
        self._min_gap = min_gap_days
        self._max_gap = max_gap_days
        self._move_mult = move_atr_mult
        self._stop_mult = stop_atr_mult
        self._target_mult = target_atr_mult
        self._swing_lb = swing_lookback
        self._swing_buf = swing_buffer_atr
        self._min_bars = min_bars

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._min_bars:
            return None
        current = bars[-1]
        prev = bars[-2]
        t1 = _bar_time(current)
        t0 = _bar_time(prev)
        if t1 is None or t0 is None:
            return None
        try:
            gap_days = (t1 - t0).days
        except Exception:
            return None
        # 4+ calendar days = holiday adjacent to a weekend; cap avoids data holes
        if gap_days < self._min_gap or gap_days > self._max_gap:
            return None

        atr_val = atr(bars, 14)
        if atr_val is None or atr_val <= 0:
            return None
        atr_d = Decimal(str(atr_val))

        closes = [b.close for b in bars]
        sma20 = sma(closes, 20)
        if sma20 is None:
            return None
        sma20_d = Decimal(str(sma20))

        entry = current.close
        if entry <= 0 or entry <= sma20_d:
            return None
        move = entry - prev.close
        if move < Decimal(str(self._move_mult)) * atr_d:
            return None

        # Stop: structural swing low if it sits within a sane ATR band, else 1.5 ATR
        atr_stop = entry - Decimal(str(self._stop_mult)) * atr_d
        swing_low = min(b.low for b in bars[-self._swing_lb:])
        struct_stop = swing_low - Decimal(str(self._swing_buf)) * atr_d
        struct_dist = entry - struct_stop
        if Decimal("1.0") * atr_d <= struct_dist <= Decimal(str(self._stop_mult)) * atr_d:
            stop = struct_stop
        else:
            stop = atr_stop
        risk = entry - stop
        if risk <= 0:
            return None
        target = entry + Decimal(str(self._target_mult)) * atr_d
        if target <= entry:
            return None
        rr = (target - entry) / risk
        if rr < Decimal("1.5"):
            return None

        # Strength components
        move_atr = float(move / atr_d)
        move_score = min(35, max(0, int((move_atr - 0.5) / 1.0 * 35)))
        vols = [float(b.volume) for b in bars[-21:-1]]
        avg_vol = sum(vols) / max(len(vols), 1)
        vol_ratio = float(current.volume) / max(avg_vol, 1.0)
        vol_score = min(30, max(0, int((vol_ratio - 0.8) * 30)))
        rng = current.high - current.low
        close_pos = float((current.close - current.low) / rng) if rng > 0 else 0.5
        close_score = min(20, max(0, int(close_pos * 20)))
        ext = float((entry - sma20_d) / atr_d)
        trend_score = 15 if ext <= 2.0 else (8 if ext <= 3.5 else 0)
        strength = max(0, min(100, move_score + vol_score + close_score + trend_score))

        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=strength,
            thesis=(
                f"First session after a {gap_days}-day holiday closure closed {move_atr:.2f} ATR higher "
                f"and above the 20-day SMA; backlog demand from the closure tends to persist for a few sessions."
            ),
            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
Strong first session after a holiday closure, long: Killed by costs · EdgeProven