Algorithmic Trading RealTest Research Systematic Trading

Engulfing Candle Strategy: Why Buying Below the Previous Low Wins 2026

Summary

The textbook engulfing breakout, buying when the close clears the previous day's high, lost money on SPY across repeated tests with different start years. Reversing the rules, buying when the close falls below the previous day's low and selling when it rises above the previous high, produced a 0.94 Sharpe, a 0.69 MAR ratio and 15% a year with a 22% maximum drawdown over the last ten years.

· 3 min read
Key findings
  • The classic breakout version, buy when the close exceeds the previous day's high, produced a negative Sharpe ratio, a 0.10 MAR ratio and roughly -5% a year on SPY, ending in a blown up account.
  • The reversed version, buy when the close falls below the previous day's low, produced a 0.94 Sharpe ratio, a 0.69 MAR ratio, 15% a year and a 22% maximum drawdown.
  • The reversed setup beat SPY on risk-adjusted returns over the ten-year test window.
  • The breakout result was not a single unlucky window: repeated tests started in different years all finished in losses.
  • The proposed explanation is positioning rather than pattern. Closes above the previous high draw retail buying that institutions sell into, and closes below the previous low flush weak hands out, which is where accumulation happens.
  • The whole system is two lines of RealTest code, Buy = C < Low[1] and Sell = C > High[1], so there is nothing to optimise and no parameter to overfit.

Most traders are taught to buy strength. The rule of thumb is simple: when the close is higher than the previous day’s high, that’s a breakout, a bullish confirmation, a sign to go long. But what if this is one of the worst signals in the book? What if the true edge hides in flipping that logic, buying when price closes below the previous low and selling when it breaks above the previous high?

 

The Classic Breakout Strategy

The conventional approach works like this:

  • Entry: Buy when the close is above the previous day’s high.
  • Exit: Sell when the close falls below the previous day’s low.

 

It looks good on paper momentum, confirmation, strength. But backtests show the strategy performs poorly over the long run. In multiple tests across SPY data, the account equity curve dropped quickly, and repeated tests starting at different years all ended in losses.


The Reverse Engulfing Candle Setup

Now flip it:

  • Entry: Buy when the close is below the previous day’s low.
  • Exit: Sell when the close rises above the previous day’s high.

 

This contrarian entry feels uncomfortable. It means buying weakness, catching falling knives, and waiting through volatility. But discomfort often equals edge. 


Backtest Results: Breakout vs Reverse

Strategy Sharpe Ratio MAR Ratio Annual Return Max Drawdown
Classic Breakout (C > High[1]) Negative 0.10 -5% Blown up account
Reverse Setup (C < Low[1]) 0.94 0.69 15% 22%

 

Over the last 10 years, the reverse setup not only outperformed the breakout, it even beat SPY on risk-adjusted returns.

Breakdown

Breakout


Why This Contrarian Edge Exists

Trading Psychology

Retail Herding and FOMO

When price closes above the previous high, retail traders rush in. Institutions sell into that strength, offloading positions. You’re often the exit liquidity.

Fear and Panic Selling

A close below the previous low scares weak hands out. Institutions and pros quietly accumulate here, creating mean-reversion pressure upwards.

Risk Aversion

Buying weakness is hard psychologically. Most traders avoid it, which means the risk premium stays intact. Long-term, that discomfort pays in excess returns.

 

Realtest Code Example

Here’s a simplified Realtest code snippet to test the reverse engulfing setup on SPY:

Buy = C < Low[1]
Sell = C > High[1]

Want ready-to-use strategy packs? Explore tested Realtest strategies Here.

Final Thoughts

The “engulfing candle strategy” teaches a bigger lesson: don’t take trading rules at face value. Textbook logic like “buy strength” may look convincing, but in real markets it’s often the worst time to buy. Contrarian approaches, especially when backed by large sample backtests, reveal hidden edges most traders overlook.

Key Takeaway: Buying below the previous low and selling above the previous high has outperformed traditional breakouts in both raw returns and risk-adjusted performance. If you’re willing to hold through discomfort, the edge is yours.

Key terms

Engulfing Candle
A bar whose range covers the previous bar's range, conventionally read as a reversal or confirmation signal depending on direction.
Breakout Entry
Entering when price clears a prior reference level, such as the previous day's high, on the assumption that strength continues.
Contrarian Entry
Entering against the recent move, such as buying a close below the previous day's low, on the assumption that the move is an overreaction.
MAR Ratio
Compound annual return divided by maximum drawdown. A direct measure of return earned per unit of worst-case loss.
Exit Liquidity
Buyers whose demand allows an existing holder to sell out at a good price. The article's argument is that breakout buyers often serve this role.
Mean Reversion
The tendency of price to move back toward a recent average after an extreme move, which is the effect the reversed rules are trading.

Frequently asked questions

What is the engulfing candle strategy?

In its textbook form it is a breakout rule: buy when the close is above the previous day's high, treating that as bullish confirmation, and sell when the close falls below the previous day's low. This article tests that rule on SPY and then tests its exact opposite.

Does the classic breakout entry work on SPY?

Not in this test. Buying closes above the previous day's high produced a negative Sharpe ratio, a 0.10 MAR ratio and around -5% a year, and the equity curve fell quickly. Repeating the test from several different start years produced losses in every case.

What is the reverse engulfing setup?

The same two rules with the signals swapped: buy when the close is below the previous day's low, and sell when the close is above the previous day's high. It means buying into weakness and selling into strength, which is the opposite of what breakout trading teaches.

What were the backtest results for the reverse setup?

A Sharpe ratio of 0.94, a MAR ratio of 0.69, roughly 15% a year and a 22% maximum drawdown over the last ten years on SPY. On risk-adjusted terms that also came out ahead of holding SPY over the same window.

Why would buying weakness beat buying strength?

The article's explanation is about who is on each side. A close above the previous high attracts retail buying that institutions can sell into. A close below the previous low frightens weak holders out, and that selling is absorbed. Buying weakness is psychologically hard, so the premium for doing it persists.

What is the MAR ratio?

The MAR ratio is compound annual return divided by maximum drawdown. It answers how much return each unit of worst-case pain bought. The reverse setup scored 0.69 against 0.10 for the breakout version, which is the sharpest single contrast in the test.

What is the RealTest code for this strategy?

Two lines: Buy = C < Low[1] and Sell = C > High[1]. C is the close, Low[1] and High[1] are the previous bar's low and high. Because there are no lookback lengths or thresholds, there are no parameters to optimise and nothing to curve fit.

Is a 22% maximum drawdown acceptable for this kind of strategy?

It has to be judged against the return that produced it, which is what the 0.69 MAR ratio expresses. The more useful comparison is the alternative: the breakout version reached a far worse outcome, losing the account, so the choice is not between 22% and zero.

What is the wider lesson from this test?

That a widely repeated rule is not evidence. Buy strength is standard advice, and reversing it produced better results on this instrument over this period. Any rule taken on trust is worth testing in its inverted form, on a large sample, before it is traded.

Related strategies

SubStack Research RealTest Code
The RealTest file behind this test, so you can run both the breakout and the reversed version yourself and change the instrument or the date range.
View →
Very Simple Mean-Reversion Strategy
The same idea developed properly: buying weakness rather than strength, with entry and exit rules that hold up across a longer sample.
View →
RealTest Mean Reversion Trading Strategy
A full mean reversion system with cost and slippage modelling, for when the two-line version has served its purpose as a demonstration.
View →
← Back to News

#1 RealTest Backtests

Supercharge Your Trading Now

Reduce drawdown, build diversification, or speed up your development time.

Browse RealTest Strategies