On this page
Back to tutorials

Scalping EA MT5 — No Code Builder

M5 SMA Golden/Death Cross scalping recipe: spread and London/NY session filters on Step 4, risk on Step 5, export MQL5, Every tick Strategy Tester.

📖 15 min read

📝 3,000 words

🏷️ MQL5 & Expert Advisors

Share this article:

Want to build a no-code strategy right now?

Create your free account in seconds and start building immediately.


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 M5SMA with Golden Cross (Buy) and Death Cross (Sell), Period 10 (slow MA 20). Step 4Liquidity 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:

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().

RequirementWhy
Low spreadFew-pip targets lose to costs
Tick-accurate backtestOHLC modes misstate fills
Session filterLiquidity peaks (London / NY)
Strict riskOne 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

LayerChoiceBuilder location
SignalsSMA Golden Cross / Death Cross, Period 10Step 3, tab M5
Spread caphasSpread, maxSpread 0.01Step 4, Liquidity Filters
SessionisActive, London + New YorkStep 4, Market Session
RiskSL 8–15 pips starter (tune per symbol)Step 5
SymbolEURUSD (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:

ParameterSMA defaultFor this recipe
Length2010 (align with Golden Cross Period)
SourceCloseClose
Offset00
ConditionBuySell
TypeGolden CrossDeath Cross
Period10 (slow = 20)10
Confirmation1–21–2
TimeframeM5 (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)

ParameterRangeDefaultRecipe
spread0 – 0.10.01Keep default unless calibrating
volumePeriod5 – 10020Optional

Liquidity Filters (conditions used here)

hasSpread — only trade when spread is acceptable:

FieldRangeDefaultRecipe
maxSpread0 – 0.1 (step 0.001)0.010.01 starter for EURUSD

Other conditions (documented for advanced builds): isLiquid, isIlliquid, volumeSpike, volumeDrop, spreadWidening — see Advanced EA MTF & Filters.

Market Session (parameters)

ParameterDefaultRecipe
sessionLondon, New YorkSame
timezoneUTCUTC (or your broker offset via offset)
overlaptruetrue

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

  1. Add Liquidity Filters → condition hasSpreadmaxSpread 0.01.
  2. Add Market SessionisActive → 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

  1. Code Generator → MQL5 → .mq5.
  2. MetaEditor F7.
  3. Strategy Tester: model Every tick, M5, realistic spread, 3–6 months minimum.
  4. 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

Try it: Strategy Builder demo — M5 scalping template in one session.

References: MetaTrader 5 Strategy Tester · MQL5 SymbolInfoInteger.

Build your no-code trading strategy now — free

Create your account and start building a complete no-code strategy right now. Add indicators, filters, and risk rules, then export MQL5 in minutes.

Frequently Asked Questions

Read scalping concepts first, then in Strategy Builder use M5 SMA Golden Cross for Buy and Death Cross for Sell, add Step 4 Liquidity hasSpread and Market Session London/New York, set tight stop loss on Step 5, export MQL5, and backtest with Every tick.

The scalping-ea-mt5 guide explains spread, Every tick, and MQL5 OnTick theory. This article is the no-code build walkthrough in Strategy Builder with exact filter fields.

The builder uses decimal spread (0.01 is about 1 pip on EURUSD in many brokers). Start with 0.01–0.015 on Demo, then tune after Strategy Tester with realistic spread modeling.

This recipe uses M5 for cleaner signals than M1. For M1, copy the same steps but expect more trades and noise; always use Every tick in the tester.

Spread, slippage, and tick data quality differ from backtest. See Strategy Tester vs Live and test on Demo. Add spread filter on Step 4 as in this guide.

No. It is a teaching template (MA cross + filters), not financial advice. Validate on your broker before live trading.

Build your no-code strategy now — free

Create Free Account