Skip to content
The Casebook · A classic strategy

Buy below two prior lows in an uptrend, exit at 5-day high

Buy when the close is below the lows of the previous two days in an uptrend (above the 200-day average); exit at a 5-day high.
VerdictTested Nov 22, 2026

Survivorship mirage

It clears the bar on today's winners, the stocks everyone wishes they had bought, but not on the laggards, which is where hindsight can't help.

  • It clears the bar on today's winners but not on the laggards: the winners' own rise did the work.
Trades on the laggards
6,235

42 large US stocks, 15 years

Per trade, after costs
−0.056R

Before costs +0.022R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

On the 22 laggards, 6235 trades averaged −0.056R after costs, against 0.046R on today's winners. Bull, flat and bear markets all came out negative (−0.052, −0.062, −0.089), with t values by trade of −4.99, −2.65 and −2.46. The winners' own rise did the work, hence the verdict.

How it was tested

Buy at the close when it falls below the lowest low of the prior two days while above the 200-day average, and exit at the first close at or above the 5-day high.

Side
Long
Its own exit
At each close after entry, exit at that close if close >= the highest high of the prior 5 days (excluding the current day)., checked at each close
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.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
  • Uptrend means close above the 200-day simple moving average of closes
  • Below the lows of the previous two days means close is under the lower of the last two days' lows (t-1 and t-2)
  • 5-day high means the highest high of the previous 5 bars, and exit triggers on a close at or above it
  • Exit executes at that day's close
  • Stop set at 3 x ATR(14) and target at 6 x ATR(14) as wide protective levels since the idea names none
  • Max hold set to 30 trading days (the harness limit) as a backstop since the idea names no time limit

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
Bull4,786−0.052R−4.99−4.31 · 1,728d−0.051R · beats 45%+0.048R
Flat1,056−0.062R−2.65−2.52 · 388d−0.036R · beats 25%+0.052R
Bear393−0.089R−2.46−2.11 · 161d+0.005R · beats 0%−0.021R
All6,235−0.056R−0.045R+0.046R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 14.1 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 UptrendTwoDayLowBreakExit5dHigh:
    name = "uptrend_two_day_low_break_exit_5d_high"
    description = "Long when close > SMA200 and close < min(low t-1, low t-2); exit at close >= prior 5-day high."

    def __init__(self, sma_period: int = 200, atr_period: int = 14, stop_mult: float = 3.0, target_mult: float = 6.0, exit_lookback: int = 5) -> None:
        self._sma_period = sma_period
        self._atr_period = atr_period
        self._stop_mult = stop_mult
        self._target_mult = target_mult
        self._exit_lookback = exit_lookback

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._sma_period + 1:
            return None
        current = bars[-1]
        sma_val = sma([b.close for b in bars], self._sma_period)
        if sma_val is None:
            return None
        if current.close <= Decimal(str(sma_val)):
            return None
        two_day_low = min(bars[-2].low, bars[-3].low)
        if current.close >= two_day_low:
            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 = current.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="Uptrend (close > SMA200) with close below the prior two days' lows; long for a snap-back to the 5-day high.",
        )

    def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
        n = self._exit_lookback
        if len(bars) < n + 1:
            return False
        prior_high = max(b.high for b in bars[-(n + 1):-1])
        return bars[-1].close >= prior_high

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