Blog / Strategy
Strategy

Structure Breakout Trend MT5 EA

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 Structure Breakout Trend EA is a pure price-action, break-of-structure (BOS) trading system for MetaTrader 5 that uses no technical indicators at all — no moving averages, no RSI, no ATR. Instead, it works entirely from horizontal support and resistance levels that it builds from real swing pivots (the natural peaks and troughs price carves out as it moves). In plain terms, a swing high is a bar that stands taller than its neighbours on both sides, and a swing low is a bar that dips lower than its neighbours on both sides. These pivots become the structural map the strategy reads.

This is a trend-following continuation approach. Rather than fading a level (betting price will bounce off it), the strategy waits for price to break through a level in the direction of the prevailing trend. It determines trend using classic Dow theory market structure: an uptrend is defined by a sequence of higher highs and higher lows, while a downtrend is defined by lower highs and lower lows. Only when structure and breakout agree does the strategy signal a trade.

As a learning tool, Structure Breakout Trend is well suited to traders who want to study how market structure and breakout logic combine without the noise of lagging indicators. Because every level it uses is confirmed by future bars before it is acted upon, the levels never "repaint" (shift after the fact), which makes the logic transparent and easy to follow on a chart. It is best understood as a framework for studying trend continuation — not as a shortcut to results.

How It Works

The strategy evaluates the market once per newly-closed bar and only considers a new trade when no position is already open under its magic number. Here is the logic in plain English:

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

Strategy Parameters

Parameter Default Min Max Description
PivotLeftRight 3 2 8 Number of bars required on each side of a bar for it to qualify as a confirmed swing pivot. Higher values produce fewer, more significant levels.
StopBufferFrac 0.10 0.00 1.00 Stop buffer placed beyond the structural swing, expressed as a fraction of the current swing range (resistance − support). Larger values give the trade more breathing room.
RewardRatio 2.00 1.00 6.00 Take-profit distance as a multiple of the structural stop distance. A value of 2.00 targets twice the risk.
Lots 0.10 0.01 1.00 Fixed trade volume in lots per position.
Magic 7401 0 9,999,999 Unique identifier so the EA only manages its own trades and can run alongside other strategies.

Recommended Chart Settings

The strategy was designed for a trending instrument — for example GBPUSD or XAUUSD (Gold) — on the H1 (1-hour) timeframe. This combination suits a swing trend-following style, where confirmed structure has time to develop and the R-multiple target has room to play out. As always, results will vary considerably across different symbols, timeframes, and market conditions. Ranging or choppy markets, in particular, tend to produce false breakouts that this kind of system is more exposed to, so it is worth studying how the logic behaves across several instruments before drawing conclusions.

Historical Backtest Results

Note: The figures below are from a historical backtest simulation. Backtests have inherent limitations — they do not account for slippage, requotes, spread widening, or psychological factors. These results should not be interpreted as a prediction of future performance.

No backtest data is available for this strategy at the time of writing. When a historical simulation has been completed, this section will be updated with the standard performance metrics — Net Profit, Profit Factor, Sharpe Ratio, Win Rate, Maximum Drawdown %, and Total Trades — drawn directly from the simulation report. Until then, no performance figures are presented, and none should be assumed.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like any approach, Structure Breakout Trend has trade-offs worth understanding before you study it on a live or demo account.

Strengths. Because it relies only on confirmed swing pivots, the strategy's levels are objective and do not repaint, which makes its decisions easy to audit on a chart. Requiring both a structural trend and a fresh break of structure is a relatively strict filter, so it tends to avoid trading against an established trend. The structural stop and R-multiple target give every trade a clearly defined, self-scaling risk profile.

Limitations. Breakout systems are vulnerable to false breakouts — price closing beyond a level only to reverse — especially in ranging or low-volatility conditions. Because the strategy waits for a closed-bar confirmation, entries occur after the initial move, which can mean a less favourable entry price when momentum is fast. It also trades only one position at a time and has no re-entry or trailing logic, so a single whipsaw can result in a full stop-out. The fixed lot size means position size does not adapt to account equity or volatility.

Where it may underperform. Sideways, news-driven, or sharply mean-reverting markets are the toughest environment for trend-continuation breakouts. The strategy is designed for instruments that trend cleanly, so applying it to range-bound symbols may produce frequent small losses. Treat it as a framework for studying market structure, and validate its behaviour thoroughly before relying on it.

Risk Management Tips

Sound risk management matters far more than any single entry signal. A few general principles to keep in mind as you learn:

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