Backtesting an EA in MT5
A quick check you can run before going live or after changing settings. For optimisation and walk-forward analysis see the in-depth testing guide.
1. Get a build that runs in the tester
Use the .ex5 from your dashboard or the free demo from the EA's MQL5 Market page (linked on every product page). Current EA Quantum Lab builds skip the licence check inside the Strategy Tester, so no activation is needed for backtests.
Tip: An older build stops in the tester with "license check failed"? Download the file again from your dashboard.
2. Open the Strategy Tester
View → Strategy Tester (Ctrl+R). Choose the EA, the symbol and the timeframe from the product page.
3. Choose "Every tick based on real ticks"
It is the only modelling mode that matches live execution. MT5 downloads the broker's tick history automatically on the first run — the first test takes longer.
"1 minute OHLC" and "Open prices only" are fine for quick checks of slow systems, not for scalpers.
4. Match your live account
Set a date range of at least 2 years, and the same deposit, currency and leverage as your real account. Testing $100,000 at 1:500 tells you nothing about $1,000 at 1:100.
5. Load the preset
Inputs tab → right-click → Load, and pick the .set file from EA settings — the same one you'll use live.
6. Run and read the report
Press Start. Then check the Backtest tab:
- Maximal drawdown (equity) — compare it with the drawdown on the product page;
- Profit factor — above 1.3 is workable, above 1.5 is good;
- Recovery factor — net profit ÷ max drawdown;
- Total trades — fewer than ~200 is not statistically meaningful.
Important: A smooth curve with a huge return usually means martingale, grid or overfitting. Judge drawdown first, profit second.
7. Confirm on demo
Run the same settings on a demo account with your broker for 2–4 weeks before trading real money. For optimisation and forward tests see How to properly test MT5 Expert Advisors.
Frequently asked questions
Do I need a licence to backtest?
No. Current builds skip the licence check in the Strategy Tester; it only runs on a live chart.
Why does my backtest differ from the product page?
Different broker ticks, spread, commission, deposit or settings. Use real ticks, your broker's typical spread and the published preset to get comparable numbers.