Blog / Strategy
Strategy

Engulfing Breakout Hedge

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Engulfing Breakout Hedge is a pure price-action trading strategy for MetaTrader 5 that combines three classic discretionary tools — floor pivot points (mathematically derived support and resistance levels), the engulfing candlestick pattern (where one candle's body completely covers the previous candle's body), and a momentum breakout filter. It uses no traditional indicators at all: there is no moving average, RSI, ATR, or Bollinger Band anywhere in the logic. Every decision is driven by raw candle geometry and recalculated price levels.

The strategy is designed for liquid, level-respecting markets where price tends to rotate around well-defined support and resistance — major forex pairs such as EUR/USD or GBP/USD, or gold (XAU/USD), on intraday timeframes like M5, M15, or M30. Its core thesis is the deliberate mirror of a range-fade approach: instead of selling resistance and buying support, it waits for a level to actually break and then trades in the direction of that break, confirmed by an engulfing candle that opens near the pivot and closes decisively through it.

As a learning tool, the Engulfing Breakout Hedge is best suited to traders who already understand basic candlestick patterns and pivot levels and who want to study how breakout confirmation, false-break handling, and basket-level money management can be combined into a single automated system. It is a strategy worth analyzing for its structure and risk logic — not a shortcut, and not a substitute for disciplined trading education.

How It Works

The strategy recomputes its levels on every freshly closed bar and only looks for new trades when no positions are open. Here is the full sequence in plain English:

engulfing breakout hedge MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
PivotLookback 20 5 150 Number of closed bars before the signal candle whose H/L/C define the floor pivots.
ZoneFrac 0.20 0.02 1.00 How near the broken level the candle's open must sit, as a fraction of the pivot range.
BreakFrac 0.05 0.00 0.50 How far beyond the level the candle must close to count as a break, as a fraction of the range.
EngulfBodyRatio 1.00 0.50 3.00 Engulfing strength: the signal body must be at least this multiple of the prior candle's body.
HedgeFrac 0.25 0.05 1.00 Distance price must travel back through the level to call the break false and deploy the hedge.
StopFrac 0.30 0.05 2.00 Extra base stop-loss pad placed beyond the hedge trigger, as a fraction of the range.
RewardFrac 1.00 0.20 4.00 Base take-profit distance in the breakout direction, as a fraction of the range.
ReclaimFrac 0.30 0.05 1.50 Hedge invalidation pad: if price reclaims the level by this much, the reversal is treated as wrong.
BasketTpMoney 25.0 5.0 2000.0 Close the whole basket once net floating profit reaches this amount (account currency).
BasketSlMoney 300.0 50.0 100000.0 Flatten the whole basket once net floating loss reaches this amount (account currency).
MaxSpreadPoints 50 0 500 Skip new entries while spread (in points) exceeds this value (0 = off).
Lots 0.10 0.01 1.00 Base and hedge order volume in lots.
Magic 8310 0 9,999,999 Magic number used to identify and manage this EA's positions.
engulfing breakout hedge MT5 EA — MQL5 source code

Recommended Chart Settings

The Engulfing Breakout Hedge was designed for liquid, level-respecting instruments: major forex pairs such as EUR/USD and GBP/USD, or XAU/USD (gold). It is intended for intraday timeframes — M5, M15, or M30 — where pivot breaks and false breaks tend to alternate throughout the trading session. Because every buffer is expressed as a fraction of the pivot range rather than a fixed pip distance, the logic adapts to whichever symbol and timeframe you select at run time. Keep in mind that results will vary significantly across different instruments, broker spreads, and market conditions, so any setting should be studied carefully before use.

How to Install on MetaTrader 5

What to Consider Before Using This EA

The strengths of this approach are rooted in well-understood price-action concepts. Trading with a confirmed level break aligns the strategy with the stop-loss orders and fresh momentum that often appear when a crowded range finally gives way, and requiring an engulfing candle adds a recognizable confirmation filter rather than acting on a single tick poking through a level. The fraction-of-range sizing is also a thoughtful design choice, since it removes brittle pip hard-coding.

That said, the limitations are real and should be studied honestly. Breakout systems are vulnerable to false breaks — price that pokes through a level, traps breakout traders, then snaps back. This strategy attempts to address that with its reversal hedge, but hedging introduces its own complications: while both legs are open, the account holds exposure in two directions, and a strong continuation of the original failed breakout can still pressure the basket toward its loss ceiling. In choppy, low-volatility conditions, repeated small false breaks may also lead to frequent entries and exits. Pivot-based levels work best in markets that genuinely respect structure, so performance can degrade during news-driven spikes or thin liquidity. Finally, the basket money-management exits are denominated in account currency, which means appropriate values depend heavily on your lot size and account balance.

Risk Management Tips

Sound risk management matters far more than any single parameter. Consider the following general principles:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog