Blog / Strategy
Strategy

Order Block Structure Continuation

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 Order Block Structure Continuation strategy is a pure price-action Expert Advisor (EA) for MetaTrader 5 built around the ICT (Inner Circle Trader) order block concept combined with market structure and break of structure (BOS) logic. Unlike many automated systems, it uses no oscillators or moving-average crossovers as entry signals. Instead, it reads the raw shape of the candles — swing highs, swing lows, displacement, and the institutional "order block" — to decide when and where to act. The only indicator it touches is the Average True Range (ATR), and that is used solely to size the protective stop buffer, never to generate a signal.

This is a trend-continuation / pullback model. It is designed for trending or impulsive market conditions, where price breaks a structural level, pauses, and then retraces into the zone that launched the move before continuing in the same direction. In plain terms, it waits for the market to "show its hand" with a decisive close beyond a prior swing, then tries to join that move on the retracement rather than chasing the breakout itself.

As a learning tool, the Order Block Structure Continuation EA is well suited to traders who want to study how concepts like liquidity, displacement, and order-block mitigation can be translated into deterministic, rule-based code. It is not a shortcut to results — it is a transparent worked example of a popular price-action methodology. Discretionary traders curious about automating their structure-based ideas, and students of ICT-style trading, will find it the most instructive.

How It Works

The strategy runs an incremental state machine. All structural analysis happens on closed bars, while the entry trigger (mitigation) is checked on every tick. Here is the full lifecycle in plain English:

order block structure continuation EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
SwingStrength 3 2 8 Fractal strength K — how many bars must sit on each side of a pivot for it to count as a confirmed swing high/low. Higher values mean fewer, more significant swings.
ObSearchDepth 15 5 40 How many bars to walk back from the break-of-structure bar when searching for the last opposing candle (the order block).
ObValidBars 20 5 60 How many closed bars an armed order block stays valid before it expires un-mitigated.
AtrPeriod 14 7 30 Lookback period for the ATR used to size the stop buffer (used for stop sizing only, not as a signal).
StopBufferAtr 0.30 0.05 1.50 Multiplier applied to ATR to set the stop-loss buffer beyond the order block edge.
RewardRisk 2.0 1.0 5.0 Reward-to-risk ratio. The take-profit distance equals the stop distance multiplied by this value.
Lots 0.10 0.01 1.0 Fixed trade volume in lots per position.

Note: the EA also exposes a Magic number input (default 7340) used to tag and identify its own positions. It is an operational tag rather than a tunable strategy parameter.

order block structure continuation EA — MQL5 source code

Recommended Chart Settings

This strategy was designed as a price-action structure model and is most coherent on the higher intraday timeframes, such as the H1 (1-hour) chart, where swing structure and order blocks are cleaner and less prone to noise than on very low timeframes. Major forex pairs with tight spreads — for example EUR/USD or GBP/USD — are a sensible starting point for study because their liquidity tends to produce well-defined displacement and retracement behaviour.

That said, structure-based behaviour varies considerably from one symbol and timeframe to another, and across different market regimes. Treat any chart setting as a starting point for your own testing rather than a fixed recommendation. Results will differ across instruments, sessions, and volatility conditions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

The Order Block Structure Continuation model has clear conceptual strengths. It is fully rule-based and transparent — every decision (swing, BOS, order block, mitigation) can be inspected bar by bar, which makes it an excellent study piece for understanding ICT-style price action. Its use of ATR for the stop buffer means risk distance adapts to volatility, and its fixed reward-to-risk target enforces a disciplined exit framework. Trading only one position at a time keeps exposure simple to reason about.

There are also real limitations worth understanding. Order blocks and break of structure are subjective concepts in discretionary trading; encoding them into fixed rules necessarily simplifies them, so the EA's interpretation may differ from how a human chartist would mark the same zone. As a continuation model, it depends on trending or impulsive conditions — in choppy, range-bound markets, breaks of structure can be frequent false signals ("liquidity grabs") that lead to whipsaw entries. Because it waits for a retracement, strong moves that never pull back into the zone are simply missed, and the order block may expire before mitigation occurs.

The strategy also reacts to a single confirmed swing at a time and does not incorporate higher-timeframe bias, news filters, or session timing. In short, it may underperform during news-driven volatility, low-liquidity periods, and persistent ranges. None of this makes the approach invalid — it simply means the model should be studied and tested thoroughly before any consideration of live use.

Risk Management Tips

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

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