How-To Guides for Forex EA Trading
21 step-by-step tutorials covering every stage of running an Expert Advisor in MetaTrader 5 — from first install through prop-firm-grade live trading. Each guide includes HowTo and FAQ schema, a William Harris byline, and a last-reviewed date.
Installation & Setup
Get MetaTrader 5 and an Expert Advisor running for the first time.
How to Install MetaTrader 5 on Windows (2026 step-by-step)
BeginnerDownload the broker-branded MT5 installer from your broker's download page (not metatrader5.com), run it as Administrator, choose a clean install directory, launch the terminal, log in with your trading or investor credentials, and confirm the Market Watch shows live ticks. The whole process takes about 15 minutes on a normal broadband connection.
15 minutes · Free · Read guide →
How to Install MetaTrader 5 on macOS (Intel and Apple Silicon, 2026)
BeginnerMetaQuotes dropped the native macOS build of MT5 in 2022, so Mac traders have three options: a broker-shipped CrossOver/Wine wrapper (most popular, free, works on Apple Silicon), the official web terminal at trade.mql5.com (browser-only, no EAs), or Parallels Desktop with Windows 11 ARM (best performance for backtesting, costs $100/year). For day-to-day EA running, the broker's wrapper is the right pick.
25 minutes · Free (wrapper) or $100/year (Parallels) · Read guide →
How to Install an Expert Advisor in MetaTrader 5 (2026 step-by-step)
BeginnerOpen File → Open Data Folder in MT5, drop the EA's .ex5 file into MQL5/Experts/, refresh the Navigator panel (Ctrl+N then Refresh), drag the EA onto a chart of the correct symbol and timeframe, configure inputs from the popup, click the AutoTrading button in the toolbar so it turns green. The whole flow is about 10 minutes for someone doing it for the first time.
10 minutes · Free (the EA itself may be paid) · Read guide →
How to Attach an EA to a Chart in MT5 (with input tuning)
BeginnerOpen the correct symbol + timeframe chart, drag the EA from Navigator, and configure three popup tabs: Common (allow live trading, fix Magic Number), Inputs (load the .set preset, set lot size against your real balance), and Dependencies (link to required custom indicators). Save the layout as a template so the next account reload restores everything in one click.
5 minutes per chart · Free · Read guide →
How to Install a .set Preset File in MT5
BeginnerCopy the .set file into MQL5/Presets/ via File → Open Data Folder, then in any EA's Inputs tab click Load and select the .set. The EA's parameters update to the vendor's tested values. To save your own tuned version, click Save in the same tab. .set files are plain text — you can diff them in a code editor to see exactly what each preset changes.
5 minutes · Free · Read guide →
Backtesting & Optimization
Validate an EA against historical data before risking capital.
How to Backtest an Expert Advisor in MetaTrader 5 (Strategy Tester deep dive)
IntermediateOpen View → Strategy Tester, pick the EA + symbol + timeframe + date range, choose modelling mode 'Every Tick Based on Real Ticks' for realistic results, set initial deposit and leverage to match your live account, set Spread to 'Current' or a fixed pessimistic value (50 points for XAUUSD), and click Start. A clean 5-year backtest takes 15–60 minutes depending on EA complexity. The Net Profit number is the least important output — focus on Profit Factor, Max Drawdown, and Sharpe.
30 minutes setup + 15-60 min run · Free · Read guide →
How to Optimize an Expert Advisor in MT5 (without overfitting)
AdvancedMT5 optimization sweeps many parameter combinations to find the highest-performing .set. The trap is overfitting — the best in-sample result is rarely the best live result. Always optimize on 70% of history (in-sample), validate on the remaining 30% (out-of-sample), and discard any preset that significantly degrades on the validation period. Pick 'Slow complete algorithm' for ≤500 combinations, 'Fast genetic-based' for 500–100,000. The Cloud Network ($) accelerates by 100× for serious work.
45 minutes setup + 1-8 hour run · Free locally; ~$5-50 per cloud-optimization run · Read guide →
MetaTrader 5 vs MetaTrader 4 — Which One Should You Use in 2026?
BeginnerFor new traders in 2026: install MT5. It has a multi-threaded backtester, real-tick optimization, Depth of Market, more order types, and 85%+ of new commercial EAs are MT5-first. The only reasons to use MT4 are: you bought an MT4-only EA you cannot replace, your broker only supports MT4 (rare), or you specifically need a grid/martingale platform that targets MT4. Both platforms run side by side, so 'install both' is also valid.
10 minutes (decision + install) · Free · Read guide →
Infrastructure & Brokers
Pick a broker, host the EA 24/5 on a VPS, and secure the account.
How to Set Up a VPS for MetaTrader 5 (Forex EA Hosting)
IntermediateA VPS keeps MT5 running 24/5 without depending on your home PC. For sub-10ms latency to the broker, pick a VPS provider in the same datacentre — LD4 (London) for IC Markets / Pepperstone EU, NY4 (New York) for US-regulated brokers, TY3 (Tokyo) for Asia. Specs: 2 vCPU + 4 GB RAM + 50 GB SSD covers 4–6 EA charts. Cost: $5–35/month. Setup time: 45 minutes from VPS purchase to first live EA tick.
45 minutes · $5-35/month · Read guide →
How to Choose the Right Broker for Expert Advisor Trading
IntermediateFor EA trading, prioritise: (1) regulator tier (FCA/ASIC/CySEC/MAS), (2) execution model (ECN/STP, not market-maker), (3) average spread on the EA's symbol during your trading hours, (4) commission per round-turn lot, (5) datacentre location relative to your VPS, (6) EA-friendly policies (no requote, no scalping ban, no minimum hold time). Avoid: unregulated offshore brokers, bonus-only accounts, brokers that charge inactivity fees on demo conversion.
45 minutes research + 1-3 day account opening · Free (broker pays via spreads + commission) · Read guide →
How to Secure Your MetaTrader 5 Trading Account
BeginnerEnable 2FA on the broker portal (not just MT5), use a 16+ character random master password, generate a separate investor password for monitoring tools, restrict trading-account login to specific IPs if your broker supports it, audit any MQL5 Signals subscriptions for unfamiliar entries, and never enter your master password into any third-party tool. The MT5 master password is functionally a withdrawal authorisation on most brokers.
30 minutes · Free · Read guide →
Analysis & Math
Read trading statistics, size positions correctly, and compute pip value.
How to Read MT5 Trading Statistics (Profit Factor, Sharpe, Drawdown)
IntermediateNet Profit is the headline but rarely the right metric. Focus on Profit Factor (>1.5 acceptable, >2 good), Maximum Drawdown (<25% for retail, <15% for prop), Recovery Factor (>3), Sharpe Ratio (>1), and Total Trades (>200 for statistical credibility). Win Rate alone is meaningless without the Average Win/Loss ratio — an EA with 30% win rate can be very profitable if winners are 3× losers. Always cross-check the equity curve visually for cliff-edge drawdowns the summary metrics may hide.
20 minutes · Free · Read guide →
How to Calculate Risk Per Trade for Forex EAs (Position Sizing)
BeginnerThe standard position-sizing formula for retail EAs is fixed-fractional: Lot Size = (Account Equity × Risk Percent) / (Stop Loss in Pips × Pip Value per Lot). Risk 1% per trade for a normal account, 0.5% for prop-firm challenges, 0.25% if running multiple correlated EAs. Recompute on every signal, not once per account. Wrong: 'I'll trade 0.1 lot' regardless of stop or account size — this hides risk and blows up small accounts during drawdowns.
15 minutes · Free · Read guide →
How to Calculate Pip Value in MetaTrader 5 (any symbol, any account currency)
BeginnerPip value = (Pip Size × Lot Size) / Exchange Rate (if account currency ≠ quote currency, otherwise multiply directly). For an USD account: EURUSD pip = $10/lot, USDJPY pip = ~$6.67 at JPY 150, XAUUSD pip = $1/lot. MT5 shows the broker's pre-computed pip value in Market Watch → Symbols → Properties → Contract Size. For EAs that need pip value dynamically, use MarketInfo() or SymbolInfoDouble() in MQL5.
10 minutes · Free · Read guide →
Operations & Troubleshooting
Run multiple EAs, diagnose silent strategies, and export statements.
How to Run Multiple Expert Advisors in MetaTrader 5
IntermediateEach EA gets its own chart (one chart per EA-symbol-timeframe combo), a globally unique Magic Number (so EAs don't read each other's positions), and an individually-sized risk percent that accounts for portfolio correlation. Total risk across all EAs should stay under your account-level limit even in the worst-case all-losing-simultaneously scenario. A 4 GB RAM VPS comfortably runs 5-8 EAs; 16 GB for 15+ EAs.
45 minutes setup + ongoing monitoring · Free (assuming VPS already running) · Read guide →
Why Is My EA Not Trading in MT5? (Diagnostic Flowchart)
BeginnerDiagnose in this order: (1) red sad face on the chart = MT5 disabled the EA; check Experts log for reason. (2) Green smiley but no trades = EA is running but not signalling; check time filter, volatility filter, and account-condition filter. (3) EA signalling but orders rejected = broker-side issue; check Journal log for 'Trade context busy', 'Off quotes', or 'Invalid stops'. Most 'EA not trading' tickets resolve to one of: AutoTrading off, wrong symbol, outside trading session, insufficient margin, or news filter active.
10 minutes · Free · Read guide →
How to Export an MT5 Trading Statement (HTML, XML, CSV)
BeginnerRight-click in the Account History tab → Save as Report. HTML for sharing with broker support / vendors / prop firms. XML for re-importing into other MT5 instances. Detailed Report HTML includes per-trade breakdown plus chart visualizations. For Python or Excel analysis, export via 'Save as CSV' which produces a clean comma-separated trade list. Take 30 seconds; essential for support tickets and tax records.
5 minutes · Free · Read guide →
Trading Practice
Move from demo to live, pass a prop-firm evaluation, and filter news.
How to Transition from Demo to Live Forex Trading (with an EA)
BeginnerRun the EA on demo for 30 days minimum, comparing results to backtest. If demo matches backtest within 30%, move to a small live account (10-25% of intended capital) for another 30 days. If small-live matches demo within 30%, scale to full size. Demo is missing four things live has: real spread variability during news, real slippage, real psychological pressure, and the broker's risk-management interventions (margin reductions, hedging restrictions).
60+ days minimum (30 demo + 30 small live) · Free (demo) then small live account ($100-500) · Read guide →
How to Pass a Prop Firm Challenge with an Expert Advisor
AdvancedMost prop firms (FTMO, FundedNext, The Funded Trader, MyForexFunds replacements) explicitly allow EAs. The challenge constraints — typically 8-10% profit target, 5% daily loss limit, 10% overall loss limit, minimum 4-5 trading days — favour low-frequency, conservative EAs over aggressive scalpers. Configure 0.5% per trade, enable strict news filter, target the profit goal slowly across 15-20 trading days. Expected pass rate for a well-tuned conservative EA: 25-40%, vs 5-10% for aggressive setups.
30-60 day challenge + 30 day verification · $50-500 challenge fee · Read guide →
How to Filter News Events in Your Forex EA (Calendar API + filter logic)
IntermediatePull the economic calendar from ForexFactory CSV (free) or MT5's built-in calendar (since build 1750), filter for high-impact events affecting your symbol's currency, and close positions 30 minutes before each event and disable new entries until 15 minutes after. Most reputable EAs have built-in news filters; if yours doesn't, run a separate news-watcher EA that disables AutoTrading globally during news windows. Prop firms typically require this — non-compliance is a frequent challenge failure cause.
20 minutes setup · Free · Read guide →
How to Trade ICT / Smart Money Concepts with an Expert Advisor
AdvancedICT/Smart Money Concepts can be partially automated: order block detection, fair value gap identification, liquidity sweep recognition, and displacement detection are all mechanically codable in MQL5. What's harder to automate is the multi-timeframe contextual judgment that distinguishes high-probability setups from low-probability noise. The realistic approach is a hybrid EA that automates pattern detection and alerts, with manual confirmation for actual execution — fully autonomous ICT EAs underperform manual ICT trading by 30-50% in our experience.
2 hours to set up + ongoing tuning · Free (DIY) or $200-2,000 (commercial ICT EAs) · Read guide →
Want a structured learning path?
FxRobotEasy Academy on edu.fxroboteasy.com publishes 105 free lessons across 6 courses covering forex basics through advanced algorithmic trading.
Browse the free courses →