Scalping EA for MT5 — No Code (Strategy Builder)
Quick Answer: Scalping EA Without Code
Quick answer: First read Scalping EA in MetaTrader 5 (spread + Every tick). Then in Strategy Builder: Step 3 on M5 — SMA with Golden Cross (Buy) and Death Cross (Sell), Period 10 (slow MA 20). Step 4 — Liquidity Filters condition hasSpread with maxSpread 0.01 + Market Session isActive (London, New York). Step 5 — tight Stop Loss, small lot. Save → export MQL5 from Code Generator → compile → Strategy Tester on M5 EURUSD with Every tick.
Disclosure: Educational build guide — not financial advice. Scalping is sensitive to spread; backtest ≠ live profit.
Related guides: Scalping EA (concepts) · MA Crossover EA — No Code · MT5 Error 10016 · VPS for EA
Read the Concepts First
This article does not repeat the full scalping theory from Scalping EA in MetaTrader 5. Read that guide for:
- Why spread and SYMBOL_SPREAD matter
- Why Strategy Tester Every tick is required
- Pre-live checklist (mobile + desktop)
Here: one starter recipe you can build and export without writing MQL5.
What Is a Scalping EA (Automation View)?
A scalping EA targets small moves on short timeframes (M1/M5), often many trades per session. Automation runs on OnTick().
| Requirement | Why |
|---|---|
| Low spread | Few-pip targets lose to costs |
| Tick-accurate backtest | OHLC modes misstate fills |
| Session filter | Liquidity peaks (London / NY) |
| Strict risk | One bad tick can wipe many wins |
We automate a simple MA crossover on M5 — not a celebrity “secret” system. You can swap signals later (e.g. Supertrend EA — No Code).
Starter Recipe: M5 MA Crossover with Filters
| Layer | Choice | Builder location |
|---|---|---|
| Signals | SMA Golden Cross / Death Cross, Period 10 | Step 3, tab M5 |
| Spread cap | hasSpread, maxSpread 0.01 | Step 4, Liquidity Filters |
| Session | isActive, London + New York | Step 4, Market Session |
| Risk | SL 8–15 pips starter (tune per symbol) | Step 5 |
| Symbol | EURUSD (tight spread) | Tester + live chart |
Works best: Liquid overlap sessions, ECN/low-spread accounts.
Struggles in: News spikes, wide spread brokers, “Open prices only” backtests.
SMA Golden Cross on Step 3
Same product behaviour as MA Crossover EA — No Code:
| Parameter | SMA default | For this recipe |
|---|---|---|
| Length | 20 | 10 (align with Golden Cross Period) |
| Source | Close | Close |
| Offset | 0 | 0 |
| Condition | Buy | Sell |
|---|---|---|
| Type | Golden Cross | Death Cross |
| Period | 10 (slow = 20) | 10 |
| Confirmation | 1–2 | 1–2 |
| Timeframe | M5 (match Step 2 tab) | M5 |
Full list of seven SMA condition types: MA crossover guide above.
Step 4: Liquidity and Market Session
Liquidity Filters (parameters)
| Parameter | Range | Default | Recipe |
|---|---|---|---|
| spread | 0 – 0.1 | 0.01 | Keep default unless calibrating |
| volumePeriod | 5 – 100 | 20 | Optional |
Liquidity Filters (conditions used here)
hasSpread — only trade when spread is acceptable:
| Field | Range | Default | Recipe |
|---|---|---|---|
| maxSpread | 0 – 0.1 (step 0.001) | 0.01 | 0.01 starter for EURUSD |
Other conditions (documented for advanced builds): isLiquid, isIlliquid, volumeSpike, volumeDrop, spreadWidening — see Advanced EA MTF & Filters.
Market Session (parameters)
| Parameter | Default | Recipe |
|---|---|---|
| session | London, New York | Same |
| timezone | UTC | UTC (or your broker offset via offset) |
| overlap | true | true |
Market Session (condition used here)
isActive — sessions multiselect London, New York; confirmation optional 1.
Build Step by Step
Step 1 — Strategy information
Name: Scalping M5 EURUSD MA
Step 2 — Timeframes
Enable M5 as trading timeframe.
Step 3 — Signals
Buy tab M5 → SMA → Golden Cross Period 10, Confirmation 2.
Sell tab M5 → SMA → Death Cross Period 10, Confirmation 2.
Step 4 — Filters
- Add Liquidity Filters → condition hasSpread → maxSpread 0.01.
- Add Market Session → isActive → sessions London, New York.
Optional: News Filter — No Code before high-impact events.
Step 5 — Risk
Small lot (0.01 Demo), Stop Loss in pips, optional max trades per day. EA Risk Management.
Step 6 — Save
Export, Compile, and Backtest
- Code Generator → MQL5 →
.mq5. - MetaEditor F7.
- Strategy Tester: model Every tick, M5, realistic spread, 3–6 months minimum.
- Deploy — Demo first.
10016 invalid stops: MT5 Error 10016 · Common MQL5 EA Errors.
Tester vs live gap: Strategy Tester vs Live.
Trader-Reported Themes
Educational themes from public discussion — not individual quotes.
On r/Forex and r/algotrading, scalper-related threads often mention:
- Spread widens in live vs backtest — Step 4 hasSpread is critical
- Invalid stops (10016) when SL is too tight for SYMBOL_TRADE_STOPS_LEVEL
- VPS / uptime for M5 EAs — see VPS for Expert Advisor
- Overfitting short histories — forward test on Demo
We do not copy influencer “scalping systems” with undisclosed rules.
Next Steps
- Scalping EA (full concepts) — read if you skipped it
- MA Crossover EA — No Code — H1 variant
- Supertrend EA — No Code — trend follow on M15/H1
- Build EA Without Coding
- Production-Ready MQL5 Without MetaEditor
Try it: Strategy Builder demo — M5 scalping template in one session.
References: MetaTrader 5 Strategy Tester · MQL5 SymbolInfoInteger.