Blog / Strategy
Strategy

Pivot Engulfing Shield

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 Shield is a pure price-action breakout strategy that combines floor pivot points with the engulfing candlestick pattern to time momentum entries through key intraday levels. It uses no traditional indicators at all — no moving averages, RSI, ATR, Bollinger Bands, or VWAP. Instead, it reads raw chart structure: where price has ranged recently, and when a single decisive candle commits through that range. A floor pivot is a horizontal reference level calculated from the prior session's high, low, and close that intraday desks watch for support and resistance. An engulfing candle is a two-bar pattern where the current candle's body completely "swallows" the previous candle's body, signalling a visible shift of control between buyers and sellers.

This is a breakout-and-hedge system designed for liquid, breakout-prone markets such as EUR/USD, GBP/USD, or XAU/USD (gold) on intraday timeframes like M5, M15, or M30. It is built for sessions where price alternates between clean pivot breaks and false breaks (so-called "bull traps" and "bear traps"). Rather than fade levels — selling resistance and buying support — the strategy does the mirror opposite: it trades with the break when an engulfing momentum candle confirms it, and then raises a protective opposite "shield" leg if that break fails and snaps back.

As a learning tool, the Pivot Engulfing Shield is well suited to traders who want to study how breakout entries, candlestick confirmation, and hedging mechanics interact. It is a more advanced concept than a single-entry system because it manages a basket of positions, so it rewards careful study before any live use. Treat this article as a strategy analysis — a way to understand the logic and trade-offs — rather than a profit opportunity.

How It Works

The strategy recomputes its pivot levels on every freshly closed bar, using only the primary chart timeframe. Because every distance scales to the pivot range (the high minus the low of the lookback window), nothing is hard-coded in pips, so the logic adapts to whatever symbol or timeframe you select.

Calculating the levels:

Long entry — the strategy signals a buy when:

Short entry — the strategy signals a sell when:

Stop-loss and take-profit on the base leg:

The shield (the signature mechanic):

Basket money management (the dominant exit):

pivot engulfing breakout 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 preceding the signal candle whose high/low/close define the floor pivots.
BreakoutFrac 0.05 0.00 0.50 The breakout close must clear the pivot by this fraction of the pivot range to qualify.
BodyDomFrac 0.50 0.10 0.90 The engulfing body must be at least this fraction of the candle's full range (momentum filter).
ShieldFrac 0.20 0.05 1.00 Distance back across the broken level that confirms the break failed and raises the shield.
StopFrac 0.30 0.05 2.00 Extra base-stop pad placed beyond the shield trigger (fraction of the pivot range).
RewardFrac 0.60 0.20 4.00 Scalp reward distance for the base take-profit (fraction of the pivot range).
ReclaimFrac 0.40 0.05 1.50 Shield invalidation pad — if price reclaims the broken level by this, the snap-back is deemed wrong.
BasketTpMoney 20.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 Trade volume per leg.
Magic 5310 0 9999999 Magic number used to identify this EA's positions.
pivot engulfing breakout MT5 EA — MQL5 source code

Recommended Chart Settings

The Pivot Engulfing Shield was designed for liquid, breakout-prone FX majors — EUR/USD or GBP/USD — as well as XAU/USD (gold), on intraday timeframes of M5, M15, or M30. These markets tend to produce repeated pivot breaks and false breaks across a trading session, which is the environment the strategy's logic is built around.

Because all distances scale to the pivot range rather than fixed pips, the EA will run on whatever symbol and timeframe you attach it to at backtest time. That said, results will vary considerably across different instruments, sessions, and market conditions. A setting that behaves one way during a trending London session may behave very differently in a quiet, range-bound period. Always test thoroughly on historical data and a demo account before drawing any conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths of the approach. Trading with an engulfing breakout — rather than fading the level — aligns the entry with visible order flow at a price every intraday desk watches. The engulfing body filter (BodyDomFrac) helps screen out half-hearted breaks, and the range-scaled distances mean the same logic adapts across symbols and timeframes without manual pip tuning. The shield mechanic is an intelligent response to the breakout trader's worst enemy: the false break that immediately reverses.

Known limitations. Hedging is not a magic fix. When the shield locks an opposite leg, you are holding net exposure in both directions, and the basket can only be banked once the combined float turns green. The dominant risk is a strong, sustained one-way trend after the shield deploys — price keeps running, neither leg recovers cleanly, and the position rides toward the BasketSlMoney ceiling. Engulfing patterns and pivot breaks also produce frequent false signals in choppy, low-volatility conditions, where breaks fail repeatedly without a clean snap-back.

Where it may underperform. Thin or news-driven markets with erratic spreads, very quiet sessions with no follow-through, and persistent trends that never reclaim the broken level are all challenging for this design. The MaxSpreadPoints filter helps avoid the worst execution conditions, but it cannot remove the structural risk of a locked hedge in a trend. Study how the basket behaves in these scenarios before committing real capital.

Risk Management Tips

Sound risk management matters more than any single entry rule. Consider these general principles as part of your education:

The goal here is to learn how the components interact — not to chase a specific outcome. Patience and disciplined testing will teach you far more than rushing into live trading.

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