Skip to content
The Casebook · A classic strategy

Short a failed gap-up: gap over 5%, close below open

Short a stock when it gaps up more than 5% and then closes below its open, a failed gap.
VerdictTested Nov 22, 2026

Loses money

After costs it lost money on the stocks that decide the verdict.

  • −0.132R a trade after costs on the laggard stocks.
Trades on the laggards
136

42 large US stocks, 15 years

Per trade, after costs
−0.132R

Before costs −0.059R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

On the 22 laggard stocks, 136 trades averaged −0.132R after costs, and −0.059R even before costs. The 20 winners did worse at −0.252R. Only flat markets came out positive (0.129R over 28 trades); bull markets gave −0.176R and bear markets −0.261R, so the verdict is a loss.

How it was tested

Short at the close on a day when the stock opened more than 5% above the prior close but closed below that day's open, holding with a bracket stop and target for up to 10 days.

Side
Short
Time limit
Exit at the close after 10 trading days, unless the stop, the target or its own exit comes first
Bar to clear
t > 2.01, by trade and by day, sized to a first try (one idea, tested once)
Prices
15 years of daily bars through 2026-11-20; judged 2026-11-22
Choices made where the idea was open
  • Gap is measured as today's open versus the prior day's close, more than 5% up
  • Failed gap means close below the same day's open (not below the prior close)
  • Entry is at the signal day's close, as the harness requires
  • Stop chosen as 2 x ATR(14) above entry since none was given
  • Target chosen as 4 x ATR(14) below entry, i.e. twice the risk
  • Time limit of 10 trading days chosen since none was given

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
Bull78−0.176R−1.61−1.86 · 66d−0.087R · beats 15%−0.291R
Flat28+0.129R0.710.55 · 25d−0.138R · beats 95%−0.047R
Bear30−0.261R−1.84−1.20 · 19d−0.201R · beats 30%−0.408R
All136−0.132R−0.123R−0.252R

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.9 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 FailedGapUpShort:
    name = "failed_gap_up_short"
    description = "Short at the close after a >5% gap up that closed below the day's open"

    def __init__(self, gap_pct: float = 0.05, atr_period: int = 14, stop_atr: float = 2.0, target_atr: float = 4.0) -> None:
        self._gap_pct = gap_pct
        self._atr_period = atr_period
        self._stop_atr = stop_atr
        self._target_atr = target_atr

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._atr_period + 2:
            return None
        current = bars[-1]
        prev = bars[-2]
        if prev.close <= 0:
            return None
        threshold = prev.close * (Decimal("1") + Decimal(str(self._gap_pct)))
        if not (current.open > threshold):
            return None
        if not (current.close < current.open):
            return None

        atr_val = atr(bars, self._atr_period)
        if atr_val is None:
            return None
        atr_dec = Decimal(str(atr_val))
        if atr_dec <= 0:
            return None

        entry = current.close
        stop = entry + Decimal(str(self._stop_atr)) * atr_dec
        target = entry - Decimal(str(self._target_atr)) * atr_dec
        if target <= 0:
            return None
        risk = stop - entry
        if risk <= 0:
            return None
        rr = (entry - target) / risk
        if rr < Decimal("1.5"):
            return None

        # Strength: gap size, weak close within the day's range, size of fade vs ATR
        gap = float((current.open - prev.close) / prev.close)
        gap_score = min(35, max(0, int(gap * 100 * 35 / 15)))
        rng = current.high - current.low
        if rng <= 0:
            close_score = 0
        else:
            close_pos = float((current.close - current.low) / rng)
            close_score = min(30, max(0, int((1.0 - close_pos) * 30)))
        fade = float((current.open - current.close) / atr_dec)
        fade_score = min(35, max(0, int(fade * 20)))
        strength = max(0, min(100, gap_score + close_score + fade_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"Gapped up {gap*100:.1f}% at the open but closed below the open: the gap failed, so short at the close targeting 4x ATR with a 2x ATR stop.",
        )

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
Short a failed gap-up: gap over 5%, close below open: Loses money · EdgeProven