London Session Breakout EA for MT5 — No Code
Can I build a London session breakout EA for MT5 without coding?
Partly. The session gate is real: Strategy Builder Step 4 — Filters has Market Session → condition isActive → sessions London only (or London + New York for overlap liquidity) — that part of this guide works exactly as described. The signal is not: Donchian Channel is not one of the indicators the MT5 Strategy Builder supports, so it cannot sit on Step 3. Two honest paths for the signal:
- Code the Donchian channel in MQL5 — the highest high and lowest low of the last N closed bars (outline below), ANDed with a session check, then compile in MetaEditor [1].
- Build a no-code breakout with a supported indicator — Bollinger Bands breakout on Step 3, paired with the real London session filter on Step 4. It is a volatility band, not a rolling high/low channel, so signals differ from Donchian.
Disclosure: Educational build guide — not financial advice. Session filters reduce bad hours; they do not guarantee live profits.
Related guides: Donchian Breakout EA — No Code · Bollinger Breakout EA · Build EA Without Coding · EA Strategy Library
What you leave with: a session gate on Step 4 you can see before export, plus a 10-minute chart check to see if Asian-hours breakouts were polluting your backtest.
Why London Session Breakouts Matter
You backtested a breakout rule on H1 for two years. The equity curve looked acceptable. On Demo, half the losses cluster around 02:00–06:00 server time — thin ranges, fake breaks, spread spikes. The signal was not necessarily wrong; the clock was.
Forex volume is not flat 24 hours. The London session (roughly 08:00–17:00 GMT, depending on daylight saving) is where many EUR and GBP pairs see their deepest liquidity and widest ranges. A London-only gate does not invent edge — it stops the EA from trading when your breakout rules were never meant to run.
| Factor | Why it matters for EAs |
|---|---|
| Liquidity | Tighter spreads on majors (EURUSD, GBPUSD) vs quiet Asian hours |
| Range expansion | Breakout signals need movement — London often delivers |
| False breakouts | Still happen — session filter reduces Asian chop entries, does not eliminate risk |
Official context: MetaTrader runs EAs on OnTick() [2]; your job in a visual builder is to define when entries are allowed — including session gates before a breakout signal fires.
What Is a London Session Breakout EA?
| Layer | Role | Status in AlfaTactix |
|---|---|---|
| Signal (Step 3) | Price breaks above/below a channel or band | Donchian: not supported. Bollinger Bands: supported |
| Session gate (Step 4) | Trades only when London session is active | Supported today |
| Risk (Step 5) | Stop loss, lot size, optional daily caps | Supported today |
Channel theory: Donchian Channel Academy guide. Turtle-style breakout ideas are public knowledge — this guide explains the concept and gives you a reproducible no-code build with the indicators AlfaTactix actually supports.
Donchian in MQL5, and the Market Session Filter in Strategy Builder
There is no built-in Donchian function in MQL5. A hand-written EA reads the highest high and lowest low of the last N closed bars:
// OnTick, once per new bar
int hh = iHighest(_Symbol, PERIOD_H1, MODE_HIGH, 20, 1);
int ll = iLowest(_Symbol, PERIOD_H1, MODE_LOW, 20, 1);
double upper = iHigh(_Symbol, PERIOD_H1, hh);
double lower = iLow(_Symbol, PERIOD_H1, ll);
bool buyBreak = close[0] > upper;
bool sellBreak = close[0] < lower;
bool londonNow = /* your own session-time check, e.g. TimeCurrent() hour range */;
bool takeBuy = buyBreak && londonNow;
The session half of that AND, by contrast, is a real Step 4 filter — no code needed. Add Market Session, condition isActive, sessions London, and the Strategy Builder ANDs it with whatever Step 3 signal you build.
Market Session Parameters in Strategy Builder
From marketSessionConfig in the product:
| Parameter | Type / options | Default | London EA tip |
|---|---|---|---|
| session | Multiselect: London, NewYork, Tokyo, Sydney, Frankfurt, Paris, Zurich, HongKong, Singapore | London, NewYork | Set London only for strict London-only |
| timezone | UTC, EST, PST, GMT, JST, AEST | UTC | Match your broker server or use GMT consistently |
| offset | -12 – 12 | 0 | Adjust if broker server time differs from GMT |
Condition types on Market Session:
| Condition | When to use |
|---|---|
| isActive | Trade only while the selected session(s) are open — the core gate for this guide |
| isOpen | Enter only right as session opens |
| isClosed | Block entries when session ended |
| isOverlap | Require London + New York overlap (select ≥2 sessions) |
| Mode | Sessions on isActive | Best for |
|---|---|---|
| Strict London | London only | Purist "London breakout" intent |
| London + NY overlap | isOverlap with London + NewYork | Maximum liquidity window (often cited in forex education) |
A No-Code London Breakout With Bollinger Bands
The MT5 form supports the market's most-used indicators, including Bollinger Bands — a volatility band around a moving average. Pairing it with the real London session filter gives you a fully no-code, fully exportable build:
| Signal | Rule |
|---|---|
| Buy | Close crosses above the Bollinger upper band AND London isActive |
| Sell | Close crosses below the Bollinger lower band AND London isActive |
Honest limit: Bollinger Bands react to volatility around a moving average, not a rolling N-bar high/low the way Donchian does. Expect a different (usually more frequent) signal set — see Bollinger Band Breakout EA — No Code for the full condition reference.
Build the No-Code Version Step by Step
Step 1 — Name
London Bollinger Breakout H1
Step 2 — Timeframes
Enable H1.
Step 3 — Signals
Add Bollinger Bands on the Buy tab: condition Price Cross → band Upper, Source Close. Mirror for Sell with band Lower.
Step 4 — Filters (the London gate)
- Add filter Market Session.
- Parameters: session = London (add NewYork only if you plan overlap mode).
- Condition isActive → sessions London.
- The filter is ANDed with the Step 3 signal automatically.
Optional: a liquidity filter (spread) on GBPUSD if spread widens at the London open.
Step 5 — Risk
| Setting | Suggestion |
|---|---|
| Stop Loss | 1.5–2× H1 ATR or fixed pips — EA Risk Management |
| Lot | 0.01 Demo first |
Step 6 — Save
Save → Code Generator → download .mq5 → F7 compile.
Export, Compile, and Backtest
- Strategy Tester [3] → symbol EURUSD or GBPUSD.
- Period H1 · Model Every tick.
- Compare with vs without the session filter (disable Step 4 briefly) to see the trade-count impact — educational exercise only.
- Forward test on Demo — Strategy Tester vs Live.
Trader-Reported Themes (Forums)
In public threads on r/Forex and r/algotrading, traders often report (themes, not profit claims):
- Breakout EAs that run 24/7 pick up Asian false breaks — session filters are a common fix.
- GBP pairs can spike spread at London open — add a liquidity filter or widen tester spread.
- Traders often ask for a news filter around London open; AlfaTactix does not have one today (see FAQ).
Improvements: Filters and Risk
| Issue | Fix |
|---|---|
| Too few trades | Add isOverlap London+NY, or shorten the Bollinger period |
| Too many false breaks | Require the Price Cross to hold for one extra bar; add a liquidity (spread) filter |
| Losses outside London | Verify isActive sessions — timezone GMT vs broker server |
Tactix AI on this workflow
AlfaTactix includes Tactix AI: use Tactix Studio to describe your idea in plain language and draft timeframes, signals, filters, and risk into the same six-step Strategy Builder form — or open Tactix Guide on any step when you only need a field explained. Review every value, then export MQL5 or Pine Script from Code Generator (form-first — not untested prompt-to-code).
Next Steps
- Donchian Breakout EA — No Code — the Donchian indicator itself, manual MQL5 and no-code paths
- Bollinger Band Breakout EA — No Code — full condition reference for the signal used here
- EURUSD Scalping EA — No Code — M5 EURUSD with a liquidity filter
- Build EA Without Coding
10-minute chart check (before you trust any London EA): On H1 EURUSD or GBPUSD, mark your last 20 breakout signals. Count how many fired outside 08:00–17:00 GMT. If more than a third are Asian, your 24/7 backtest is lying to you. Open the live Strategy Builder demo (no signup), add Market Session isActive → London on Step 4 over a Bollinger Bands signal, and rerun the same tester dates. If drawdown on losing hours drops, you have earned the rest of this guide.
References: MetaTrader 5 Strategy Tester [3] · Donchian Channel (academy).

