Skip to content
The Casebook · A classic strategy

Outside day closing above prior high, in an uptrend

Buy an outside day that closes above the prior day's high when the stock is in an uptrend.
VerdictTested Nov 22, 2026

Loses money

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

  • −0.131R a trade after costs on the laggard stocks.
Trades on the laggards
856

42 large US stocks, 15 years

Per trade, after costs
−0.131R

Before costs −0.031R

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, 856 trades averaged −0.131R after costs; before costs the figure was about −0.031R. Bull, flat and bear markets all came out negative, at −0.129R, −0.129R and −0.191R. In bull markets, none of the random-date draws were beaten. That consistent shortfall is why the verdict reads as losing money.

How it was tested

Buy at the close of an outside day (higher high and lower low than the prior day) that closes above the prior day's high while the stock is above a rising 50-day moving average.

Side
Long
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
  • Outside day = high above prior high and low below prior low
  • Uptrend = close above SMA(50) and SMA(50) higher than 5 days earlier
  • Stop = 2 x ATR(14) below entry, chosen because the idea names none
  • Target = 2 x risk (4 x ATR(14)) above entry, chosen because the idea names none
  • Time exit after 10 trading days, chosen because the idea names none

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
Bull657−0.129R−3.19−2.62 · 488d−0.047R · beats 0%−0.001R
Flat163−0.129R−1.62−1.46 · 113d−0.020R · beats 15%+0.019R
Bear36−0.191R−1.23−1.00 · 30d+0.051R · beats 10%−0.343R
All856−0.131R−0.038R−0.005R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 15.4 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 OutsideDayCloseAbovePriorHighUptrend:
    name = "outside_day_close_above_prior_high_uptrend"
    description = "Outside day closing above prior high in a rising 50-day SMA uptrend"

    def __init__(self, sma_period: int = 50, slope_lag: int = 5, atr_period: int = 14, stop_mult: float = 2.0, target_mult: float = 4.0) -> None:
        self._sma_period = sma_period
        self._slope_lag = slope_lag
        self._atr_period = atr_period
        self._stop_mult = stop_mult
        self._target_mult = target_mult

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        need = max(self._sma_period + self._slope_lag, self._atr_period + 1) + 1
        if len(bars) < need:
            return None
        cur = bars[-1]
        prev = bars[-2]
        if not (cur.high > prev.high and cur.low < prev.low and cur.close > prev.high):
            return None
        closes = [b.close for b in bars]
        sma_now = sma(closes, self._sma_period)
        sma_prev = sma(closes[:-self._slope_lag], self._sma_period)
        if sma_now is None or sma_prev is None:
            return None
        if not (cur.close > Decimal(str(sma_now))):
            return None
        if not (Decimal(str(sma_now)) > Decimal(str(sma_prev))):
            return None
        atr_val = atr(bars, self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        atr_dec = Decimal(str(atr_val))
        entry = cur.close
        stop = entry - Decimal(str(self._stop_mult)) * atr_dec
        target = entry + Decimal(str(self._target_mult)) * atr_dec
        risk = entry - stop
        if risk <= 0 or stop <= 0:
            return None
        rr = (target - entry) / risk
        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=50,
            thesis="Outside day closed above prior high above a rising 50-day SMA.",
        )

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
Outside day closing above prior high, in an uptrend: Loses money · EdgeProven