Blog / Strategy
Strategy

Pivot 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 Pivot Breakout Hedge is a pure price-action breakout scalping strategy built around three classic tools: floor pivot points (the mathematically derived support and resistance levels intraday desks watch), the engulfing candle pattern, and a managed hedge that responds to false breakouts. Notably, it uses no lagging indicators at all — there is no moving average, RSI, ATR, or Bollinger Band anywhere in the logic. Every decision is made from raw candle geometry and the pivot levels recomputed on each closed bar.

Most pivot strategies you will encounter try to fade the level — they bet that price will stall at a pivot and reverse. The Pivot Breakout Hedge deliberately takes the mirror position. It only acts when a pivot is broken with visible conviction: a single engulfing candle that fully swallows the prior bar and closes decisively beyond the level. The thesis is that when a defended level is taken this forcefully, traders who were fading it are trapped, and their covering can extend the move just far enough for a quick scalp.

This makes the strategy a useful learning tool for traders who want to study momentum breakouts, candlestick confirmation, and basket-level money management in one place. It is best suited to those who already understand the mechanics of stop-losses and hedging and who want to examine how a rules-based system handles the breakout trader's biggest enemy — the false break. It is not a hands-off solution, and the hedging mechanic in particular deserves careful study before any live use.

How It Works

The strategy recomputes floor pivots every time a bar closes, using only the primary timeframe. Over the last PivotLookback closed bars it takes the highest high (H), lowest low (L), and the most recent close (C), then derives the standard pivots: PP = (H + L + C) / 3, R1 = 2·PP − L, and S1 = 2·PP − H. Because every buffer is expressed as a fraction of the pivot range (H − L), the system scales to any symbol or timeframe without hard-coded pip values.

Entry conditions (the strategy only seeks a setup when completely flat):

Stop-loss logic:

Take-profit logic:

The hedge — the signature mechanic:

Basket money management (the dominant exit while any position is held):

A spread filter (MaxSpreadPoints) blocks new entries when the spread is too wide, helping avoid costly fills during illiquid moments.

pivot 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 30 5 150 Number of closed bars whose high/low/close define the floor pivots.
BreakBufferFrac 0.05 0.00 0.50 How far beyond the pivot the engulfing close must finish, as a fraction of the pivot range.
MinBodyFrac 0.55 0.20 0.95 Minimum engulfing-candle body size as a fraction of its own high-low range (conviction filter).
StopBufferFrac 0.15 0.02 1.00 Structural stop-loss pad placed beyond the candle's far extreme, as a fraction of the range.
RewardRatio 1.30 0.50 5.00 Base take-profit as a multiple of the risk distance (entry to stop).
ReclaimFrac 0.25 0.05 1.50 How far price must reclaim back through the broken level to confirm a false break and trigger the hedge.
HedgeRewardFrac 0.80 0.20 4.00 Hedge take-profit / stop sizing as a fraction of a pivot range.
BasketTpMoney 20.0 5.0 2000.0 Net floating profit (account currency) at which the whole basket is closed.
BasketSlMoney 300.0 50.0 100000.0 Net floating loss (account currency) at which the whole basket is flattened.
MaxSpreadPoints 50 0 500 Skip new entries while the spread (in points) exceeds this value (0 disables the filter).
Lots 0.10 0.01 1.00 Trade volume per leg.
Magic 5310 0 9999999 Magic number used to identify and manage this EA's positions.
pivot breakout hedge MT5 EA — MQL5 source code

Recommended Chart Settings

The Pivot Breakout Hedge was designed for momentum-friendly, liquid instruments such as GBP/USD, USD/JPY, XAU/USD (gold), or an index CFD, traded on M5, M15, or M30 for an intraday breakout scalp. These instruments tend to produce the decisive displacement candles the entry logic depends on. The EA runs on whatever timeframe is selected at backtest time, so always confirm the chart period matches your intended testing window. As with any strategy, results will vary across different symbols, brokers, spreads, and market conditions, so treat these settings as a starting point for your own study rather than a fixed prescription.

How to Install on MetaTrader 5

What to Consider Before Using This EA

On the strength side, the Pivot Breakout Hedge is conceptually clean and fully transparent. Because it relies on pure price action — pivots and a single engulfing candle — there are no indicator-lag artifacts, and every buffer scales to the instrument's own range rather than fixed pip values. The conviction filters (a strong-bodied engulfing bar plus a fresh break and a buffer beyond the level) are designed to screen out weak pokes through a pivot, which is historically where naive breakout systems struggle most.

The limitations are equally important to understand. Breakout strategies are vulnerable to choppy, range-bound markets where price repeatedly probes a pivot and reverses; in those conditions the strategy may trigger entries that immediately fail. The hedging mechanic is the most consequential design choice here. Holding both directions at once does not eliminate risk — it converts a single defined-risk stop into a basket whose outcome depends on the net of two legs and on price continuing the snap-back. If price whipsaws after the hedge is deployed, both legs can bleed simultaneously until the BasketSlMoney ceiling flattens everything, which can represent a meaningful loss relative to a single base stop. Hedging is also subject to broker execution rules and may not be permitted on certain account types (for example, some jurisdictions enforce FIFO and prohibit holding opposing positions). The basket exits are money-based rather than structural, so the same currency target behaves very differently across account sizes and lot settings. None of this makes the approach unusable — it makes careful, realistic testing essential.

Risk Management Tips

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

Treat the Pivot Breakout Hedge as a framework for learning how breakouts, candlestick confirmation, and basket management interact — not as a finished system to deploy unexamined.

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