Blog / Strategy
Strategy

Protected Swing Breakout

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 Protected Swing Breakout is a pure price-action expert advisor (EA) built around the ICT (Inner Circle Trader) concept of a Break of Structure (BoS), traded entirely from confirmed fractal swing pivots with no technical indicators attached to the chart. Instead of moving averages, oscillators, or other lagging tools, it reads raw candle data — the highs, lows, opens, and closes — to map where the market last formed a meaningful turning point and then waits for price to decisively break through that level.

A fractal swing pivot is simply a high or low that stands taller (or lower) than a fixed number of candles on each side of it. The strategy treats the most recent confirmed swing high as the bullish structural level and the most recent confirmed swing low as the bearish one. When a candle closes beyond one of these levels — not merely wicks through it — the strategy interprets that as structure breaking in a particular direction. To filter out weak, indecisive breaks, it also requires a displacement condition: the breaking candle must be unusually large relative to recent average candle range, echoing ICT's distinction between a genuine break and a shallow liquidity grab.

This makes the Protected Swing Breakout best suited as a learning tool for traders studying market-structure trading and momentum breakouts. It is a structured, rules-based way to explore how concepts like swing pivots, break of structure, and displacement translate into mechanical entry and exit logic. It is not designed as a guaranteed income tool, and it should be approached as a framework for understanding price action rather than a shortcut to results.

How It Works

The strategy makes one decision per closed candle and holds at most one position at a time. Here is how each piece of its logic fits together:

In plain terms, the strategy signals a trade only when price breaks a recently formed structural level with conviction, and it always defines its risk against the swing that protected the move.

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

Strategy Parameters

Parameter Default Min Max Description
SwingLookback 3 2 6 Number of bars a candle must dominate on each side to be confirmed as a fractal swing pivot. Higher values demand more significant, less frequent swings.
RangeAvgPeriod 14 5 30 Number of candles used to compute the average candle range that the displacement filter compares against.
DisplacementFactor 1.3 1.0 2.5 The breaking candle's range must be at least this multiple of the average range. Higher values require stronger momentum to trigger an entry.
RiskRewardRatio 2.0 1.0 5.0 Take-profit distance expressed as a multiple of the structural risk (stop distance). A value of 2.0 targets twice the risk.
Lots 0.10 0.01 1.0 Fixed trade volume in lots used for each position.
protected swing breakout MT5 EA — MQL5 source code

Recommended Chart Settings

The Protected Swing Breakout is a structure-and-momentum strategy, so it tends to be studied on liquid instruments and on timeframes where swing pivots and displacement are meaningful — commonly major forex pairs (for example EUR/USD) on intraday charts such as M15, M30, or H1, where breaks of structure are frequent enough to observe but not dominated by tick noise. Because the logic is symbol-agnostic and reads only price, you can apply it to other markets, but the character of swings and displacement differs greatly between instruments. Results will vary across different market conditions, sessions, and volatility regimes, so treat any timeframe as a starting point for your own study rather than a fixed recommendation.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every approach has trade-offs, and understanding them is part of learning to trade structure.

Strengths. Because it is pure price action, the Protected Swing Breakout has no indicator lag and no curve-fitted signal smoothing — it reacts to what price actually does. Its stops are anchored to real structure rather than fixed pip distances, which means risk is defined by the market itself. The displacement filter is a thoughtful attempt to separate genuine breaks from liquidity grabs, and the fixed risk-reward target enforces disciplined exits.

Limitations. Breakout systems are well known to struggle in ranging, choppy, or low-volatility markets, where price repeatedly pokes through structure without following through — producing a cluster of stopped-out trades sometimes called "whipsaw." The "no re-entry per level" rule reduces over-trading but can also cause the strategy to sit out a move that breaks the same level again with more conviction. A fixed lot size does not scale with account equity or volatility, and a fixed risk-reward ratio may not suit every market regime. The strategy also takes only one position at a time, so it can miss simultaneous opportunities.

The honest summary is that this is a clean, transparent expression of a popular price-action concept — valuable for study — but it is not a complete trading system, and it may underperform in conditions that do not produce clean, momentum-driven breaks.

Risk Management Tips

Sound risk management matters far more than any single entry signal. Keep these general principles in mind as you study any 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