Blog / Strategy
Strategy

Pivot Engulfing Fade 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 Pivot Engulfing Fade Hedge is a pure price-action reversal scalper for MetaTrader 5 that combines two classic techniques: floor-trader pivot levels and the engulfing candlestick pattern. A "pivot level" is a support or resistance price calculated arithmetically from a recent high, low, and close, while an "engulfing candle" is a two-bar reversal pattern where the most recent candle's body completely covers the previous candle's body. The strategy uses no moving averages, oscillators, or other lagging indicators — every decision is derived directly from raw bar data.

This is a counter-trend, or "fade," approach. Rather than chasing momentum, the strategy waits for price to stretch into a calculated resistance zone (the R1 band) and fade a rally when a bearish engulfing candle appears, or to dip into a calculated support zone (the S1 band) and fade the dip when a bullish engulfing candle appears. The design assumes that short-term overextensions toward pivot levels often pause or reverse — a behavior that historically shows up most clearly in ranging or mean-reverting market conditions.

As a learning tool, the Pivot Engulfing Fade Hedge is well suited to traders who want to study how structure-based stops, fixed reward-to-risk targets, and a defensive hedging mechanism fit together in a single rules-based system. Because it is fully mechanical and indicator-free, it is a clear example of how price-action logic can be expressed in code. It should be approached as a framework for analysis and study, not as a profit opportunity.

How It Works

The strategy evaluates a fresh entry only when a new bar completes, and it manages any open hedge on every incoming tick. Here is the logic in plain English:

This combination means the strategy always knows its risk before entering, and it has a defined defensive response if the market moves strongly against the original read.

pivot engulfing fade 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 60 Number of recent completed bars used to compute the rolling high, low, and the floor-trader pivot levels (PP / R1 / S1).
ProximityPct 0.20 0.05 0.60 Fraction of the lookback range that defines the proximity band — how close price must be to R1 or S1 to qualify as "at" the pivot.
RewardRiskRatio 1.5 0.5 3.0 Multiple of the stop distance used to set the take-profit target relative to the entry.
HedgeTriggerPct 0.60 0.30 0.95 Fraction of the stop distance the primary trade must move against you before the opposite hedge leg is opened.
HedgeMultiplier 1.5 1.0 3.0 Volume multiplier applied to the base lot size when opening the hedge leg.
Lots 0.10 0.01 1.0 Base trade volume in lots for the primary position.
pivot engulfing fade MT5 EA — MQL5 source code

Recommended Chart Settings

The Pivot Engulfing Fade Hedge is built as a price-action scalper, so it is designed for liquid instruments on intraday timeframes — for example, major forex pairs such as EUR/USD on the M15 or M5 chart, where engulfing patterns near pivot bands form frequently. Because the pivots are recalculated on a rolling basis from recent bars rather than fixed daily levels, the strategy adapts to the timeframe you attach it to.

That said, every market behaves differently. The fade logic historically performs best in ranging or mean-reverting conditions and may struggle in strong, persistent trends. Always test the strategy across multiple symbols, timeframes, and market regimes in the MT5 Strategy Tester before drawing any conclusions, and remember that results will vary across different market conditions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy involves trade-offs, and a balanced view helps you study this one effectively.

Strengths. The approach is transparent and fully rules-based, with no indicator lag — entries derive directly from price structure. Risk is defined before entry through a structure-based stop, and the fixed reward-to-risk target removes discretionary exit guesswork. The hedge mechanism adds a defensive layer that can limit how far a single losing cycle runs.

Known limitations. Counter-trend fading is inherently challenging: by definition you are trading against the immediate move, so a strong trend can push through both the pivot band and your stop. Engulfing patterns are common, which can produce frequent signals — some of which will be noise rather than genuine reversals. The hedge is a double-edged tool: while it can cap drawdown and capture continuation, opening a larger opposite leg increases total exposure and can compound losses if price whipsaws around the entry. Scalping strategies are also sensitive to spread, slippage, and commission, which can meaningfully erode results on lower timeframes.

Conditions where it may underperform. Trending markets, high-impact news events, and illiquid sessions with wide spreads are the most likely environments for this fade approach to give back gains. Treat the hedge multiplier and trigger settings with particular care, since they directly affect how much additional risk the strategy can take on.

Risk Management Tips

Sound risk management matters more than any single entry rule. Consider these general principles as you study the strategy:

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