Skip to content
The Casebook · A classic strategy

Short a bearish engulfing candle after a 5-day rally

Short a bearish engulfing candle after a 5-day rally.
VerdictTested Nov 22, 2026

Loses money

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

  • −0.099R a trade after costs on the laggard stocks.
Trades on the laggards
1,693

42 large US stocks, 15 years

Per trade, after costs
−0.099R

Before costs −0.003R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

On 1693 laggard trades the result was −0.099R per trade after costs, against −0.0024604552136015716R before costs, so costs account for nearly all of the loss. The three market types were all negative: bull −0.081R, flat −0.131R, bear −0.200R. The winners fared worse at −0.208R per trade.

How it was tested

Short at the close of a bearish engulfing candle that follows a 5-day rally, and hold until a stop, target, or 10 trading 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
  • 5-day rally means close[T-1] > close[T-6] with at least 3 of the 5 days T-5..T-1 closing up
  • Bearish engulfing means the day T real body fully covers the day T-1 real body: open[T] >= close[T-1] and close[T] <= open[T-1], with T-1 up and T day down
  • Entry is at the close of the engulfing day
  • No stop or target was named, so stop is 2 x ATR(14) above entry and target is 4 x ATR(14) below entry
  • No hold period was named, so the time exit is 10 trading days

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
Bull1,266−0.081R−2.77−2.39 · 833d−0.145R · beats 100%−0.172R
Flat307−0.131R−2.22−1.87 · 197d−0.135R · beats 55%−0.326R
Bear120−0.200R−2.20−2.62 · 73d−0.152R · beats 30%−0.359R
All1,693−0.099R−0.144R−0.208R

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.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
from scanners.base import Candidate


class ShortBearishEngulfingAfter5DayRally:
    name = "short_bearish_engulfing_after_5day_rally"
    description = "Short at the close of a bearish engulfing candle that follows a 5-day rally."

    def __init__(self, atr_period: int = 14, stop_mult: float = 2.0, target_mult: float = 4.0, min_up_days: int = 3) -> None:
        self._atr_period = atr_period
        self._stop_mult = stop_mult
        self._target_mult = target_mult
        self._min_up_days = min_up_days

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < max(self._atr_period + 2, 20):
            return None
        t = bars[-1]
        p = bars[-2]
        # (1) 5-day rally ending T-1
        if not (p.close > bars[-7].close):
            return None
        ups = 0
        for i in range(-6, -1):
            if bars[i].close > bars[i - 1].close:
                ups += 1
        if ups < self._min_up_days:
            return None
        # (2) T-1 up candle, (3) T down candle
        if not (p.close > p.open):
            return None
        if not (t.close < t.open):
            return None
        # (4) body engulfing
        if not (t.open >= p.close and t.close <= p.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 = t.close
        stop = entry + Decimal(str(self._stop_mult)) * atr_dec
        target = entry - Decimal(str(self._target_mult)) * atr_dec
        if target <= 0:
            return None
        risk = stop - entry
        if risk <= 0:
            return None
        rr = (entry - target) / risk

        return Candidate(
            ticker=ticker,
            side="sell",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=50,
            thesis="Bearish engulfing candle after a 5-day rally; short with 2x ATR stop and 4x ATR target.",
        )

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 bearish engulfing candle after a 5-day rally: Loses money · EdgeProven