Blog / Strategy
Strategy

Engulfing Rebound 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 Rebound Hedge is a pure price-action expert advisor (EA) for MetaTrader 5 that combines the engulfing candlestick pattern with a rolling pivot point framework and a built-in hedging recovery mechanism. An engulfing pattern is a two-candle formation where the body of the most recent candle fully "engulfs" the body of the candle before it — often read by traders as a sign that momentum is shifting. A pivot point is a reference price level used to gauge potential support and resistance. What makes this strategy distinctive is that it uses no traditional indicators at all: there is no moving average, no RSI, and no ATR. Every decision is derived directly from raw candle data.

Instead of using a fixed daily session to calculate pivots, the strategy computes a rolling pivot from the last N closed bars. It applies classic floor-pivot math — the central Pivot Point (PP), first resistance (R1), and first support (S1) — but on a continuously moving window. This lets the strategy adapt its support and resistance map as the market drifts, rather than anchoring to a single calendar session. It then waits for an engulfing candle to form near one of these levels and trades the reaction.

This EA is designed for range-bound and rejection-prone conditions on liquid markets, and it is best understood as a learning tool for studying how candlestick patterns interact with dynamic support and resistance. It suits traders who already understand basic order mechanics and want to explore how a rules-based system frames price action, sizes risk from volatility, and manages an adverse position. It is an analytical study of structure and reaction — not a shortcut, and not a profit opportunity.

How It Works

The strategy operates on closed bars and evaluates one new signal per bar while it is flat. Here is the logic in plain English:

Because opposite-side positions must coexist, the EA requires a hedging-type MT5 account rather than a netting account.

engulfing rebound 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 8 60 Number of closed bars used to build the rolling pivot (PP/R1/S1) and the average-range volatility proxy.
StopMult 1.0 0.5 3.0 Stop-loss distance as a multiple of the average bar range.
TpMult 1.6 0.5 4.0 Take-profit distance as a multiple of the average bar range.
HedgeTriggerMult 1.0 0.3 2.5 Adverse excursion, in range multiples, that arms the recovery hedge.
HedgeVolumeMult 1.0 0.5 2.0 Hedge volume expressed as a multiple of the primary order's lots.
Lots 0.10 0.01 1.0 Primary order volume, snapped to the symbol's volume step and limits.
Magic 880142 0 9,999,999 Unique magic number so the EA only manages its own positions.
engulfing rebound hedge MT5 EA — MQL5 source code

Recommended Chart Settings

The Engulfing Rebound Hedge was designed for liquid FX majors or metals (such as EUR/USD, GBP/USD, or gold) on the M5 to M15 timeframes. On these lower timeframes, engulfing rejections at rolling pivots occur frequently enough to study, and the average-range sizing keeps stops proportional to short-term volatility. As always, behaviour will vary across different instruments, brokers, spreads, and market conditions — a setting that looks balanced on one symbol may behave very differently on another, so treat these as starting points for your own research rather than fixed recommendations.

How to Install on MetaTrader 5

What to Consider Before Using This EA

This strategy has some genuine conceptual strengths. Because it uses no lagging indicators, every signal is anchored to current price structure, which can make its logic easier to study and reason about. Sizing stops and targets from the average bar range means risk scales with recent volatility rather than a fixed pip value, and the rolling pivot keeps support and resistance levels current as the market moves. Trading both reversals and breakouts gives it two distinct ways to engage with a level.

That said, you should weigh the limitations honestly. Engulfing patterns are common and not all of them mark a true turning point — many "rejections" simply continue in the original direction. Pivot-based levels are heuristics, not magnets; price frequently slices through them. The hedging component is the area that demands the most caution: hedging does not eliminate loss, it restructures it. A hedge can lock in a spread cost on both legs, and in choppy conditions the strategy may open, hedge, and flatten repeatedly without making progress. In strongly trending markets, the reversal logic may repeatedly fight the trend, while in dead, low-volatility ranges, signals may be sparse and stops may sit very close to entry. No parameter set performs well across all regimes, and over-optimising on past data is a real risk.

Risk Management Tips

Sound risk management matters more than any single entry rule. Keep these principles in mind as you study this EA:

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