How to Build an MT5 EA Without Coding: Step-by-Step Tutorial
Build a complete MetaTrader 5 Expert Advisor without writing code. Visual builder tutorial with RSI strategy, risk management, export, and backtesting walkthrough.
Building an Expert Advisor used to mean learning MQL5 — a C++-like programming language that takes months to master. You'd spend weeks debugging semicolons and pointer errors before your EA could even place a single trade. Today, visual EA builders have changed the game completely. In this tutorial, you'll build a complete, working MT5 EA without writing a single line of code — from blank canvas to backtestable MQL5 file.
Why Build Without Code?
Most forex traders are not programmers. They have strategy ideas — entry rules, indicator combinations, risk management approaches — but translating those ideas into MQL5 code is a massive barrier. The traditional alternatives each have significant drawbacks:
| Approach | Cost | Time | Flexibility |
|---|---|---|---|
| Learn MQL5 yourself | Free | 3-6 months | Full control |
| Hire a developer | $500-$2,000+ | 2-6 weeks | Limited by communication |
| Buy a pre-made EA | $50-$500 | Instant | None |
| No-code visual builder | Free plan available | 5-15 minutes | Full control |
A no-code MT5 EA builder combines the best of all worlds: you get full control over your strategy, instant results, and zero coding required. You think in terms of "buy when RSI is below 30 and price crosses above the 50 EMA" — and that's exactly how you build it.
What You'll Build
In this tutorial, we'll create a simple but effective EA that you can actually backtest and trade:
- Strategy: RSI mean-reversion with EMA trend filter
- Buy signal: RSI drops below 30 AND price is above the 50 EMA
- Sell signal: RSI rises above 70 AND price is below the 50 EMA
- Stop loss: 1.5x ATR (adapts to volatility automatically)
- Take profit: 2:1 risk-reward ratio
- Session: London session only (08:00-17:00 GMT)
- Risk: 1% per trade, max 3 trades per day
This is the same strategy used in our RSI EA template. It's a proven approach that works well on EURUSD H1.
Step 1: Create Your Project
Sign up for a free AlgoStudio account (no credit card required) and click "New Project" on your dashboard. Name it something descriptive like "RSI Mean Reversion London" — this helps you stay organized as you build more EAs.
The visual builder canvas opens automatically. You'll see a clean workspace with a block toolbar on the left, organized into categories: Timing, Indicators, Price Action, Trading, and Trade Management.
Step 2: Set the Timing
Every EA needs a timing foundation — this controls when the EA is active. From the Timing category, drag a Trading Sessions block onto the canvas and select "London Session" (08:00-17:00 GMT).
Why London? It's the most liquid forex session with the tightest spreads and strongest institutional flow. RSI signals generated during low-volume Asian sessions are more likely to be noise. The London session filter alone typically improves any strategy's profit factor by 20-30%.
Step 3: Add Your Indicators
RSI Block (Primary Entry Signal)
Drag an RSI block onto the canvas and configure:
- Period: 14 (standard — responsive enough without too much noise)
- Oversold level: 30 (buy trigger)
- Overbought level: 70 (sell trigger)
When RSI drops below 30, it means the market has been selling aggressively and may be due for a bounce. When it rises above 70, a pullback may be coming.
Moving Average Block (Trend Filter)
Drag a Moving Average block and set it to EMA, period 50. This acts as a critical trend filter:
- Only buy (RSI oversold) when price is above the 50 EMA — confirming the overall trend is up
- Only sell (RSI overbought) when price is below the 50 EMA — confirming the overall trend is down
Without this filter, RSI will generate buy signals during strong downtrends (price keeps getting "more oversold"), leading to repeated losses. The trend filter is what makes this strategy work.
Connect both indicator blocks to the Trading Sessions block.
Step 4: Set Up Trade Execution
From the Trading category, add a Place Buy and a Place Sell block. Connect them to your indicator conditions.
Risk Management Blocks
From Trade Management, add the following blocks and connect them to your trade actions:
- Stop Loss: Set to ATR-based with a 1.5x multiplier and period 14. This automatically adapts your stop to current market volatility — wider in choppy markets, tighter in calm ones.
- Take Profit: Set to 2:1 risk-reward ratio. If your stop is 40 pips, your take profit is automatically 80 pips.
- Position Sizing: Set to 1% risk per trade. Your EA will automatically calculate the correct lot size to risk exactly 1% of your account on each trade.
- Max Trades Per Day: Set to 3. This prevents overtrading during choppy conditions.
Proper risk management is what separates a real EA from a gambling tool. Don't skip this step.
Step 5: Review Your Strategy
Before exporting, review your strategy on the canvas. You should see a clear flow:
- Timing (London Session) → Indicators (RSI + 50 EMA) → Trade Actions (Buy/Sell) → Risk Management (Stop/TP/Sizing)
If the visual flow makes sense, the logic is correct. This is one of the biggest advantages of visual building — you can see your entire strategy at a glance and spot issues immediately.
Step 6: Export and Load into MT5
Click the green Export MQL5 button. AlgoStudio generates a production-ready .mq5 file with all your logic.
- Download the .mq5 file
- Open MetaTrader 5 → File → Open Data Folder → MQL5 → Experts
- Paste the .mq5 file into the Experts folder
- Open MetaEditor (F4) and compile (F7) — you should see "0 errors"
- Back in MT5, drag the EA onto an EURUSD H1 chart
Step 7: Backtest
Open the MT5 Strategy Tester (Ctrl+R) and configure:
- EA: Your exported EA
- Symbol: EURUSD
- Timeframe: H1
- Period: Last 2 years minimum
- Model: "Every tick based on real ticks"
- Deposit: $10,000 (realistic benchmark)
Run the backtest and evaluate. Look for a profit factor above 1.3, maximum drawdown below 25%, and at least 100 trades. Read our complete backtesting guide for detailed interpretation of results.
Next Steps: Iterate and Improve
Your first EA is working. Now the real fun begins — iterating and improving. Each change takes seconds in the visual builder:
- Add an ADX filter: Only trade when ADX is above 25 (confirms a real trend exists)
- Test different RSI periods: Try 10, 14, and 21 in the MT5 optimizer
- Adjust RSI levels: Test 25/75 for fewer, higher-quality signals
- Try different sessions: Test the London/NY overlap or custom hours
- Test on other pairs: Try AUDUSD and EURGBP which tend to range well for RSI strategies
Drag a new block, connect it, re-export — no code to debug, no syntax errors to fix. This rapid iteration cycle is what makes visual building so powerful. You can test 10 variations in the time it would take to code one.
For a ready-to-use starting point, check out our RSI EA template which has this exact strategy pre-configured. Or explore the MA Crossover template for a trend-following approach. All templates are free and ready to customize. New to AlgoStudio? Our Getting Started tutorial walks you through the basics. And if you're wondering why we build for MT5 instead of MT4, read our MT5 vs MT4 comparison.
Related Articles
Ready to build your own EA?
Start building automated trading strategies for MetaTrader 5 — no coding required.
Get Started Free