Backtesting is how you sanity-check an Expert Advisor before it trades real money. The Strategy Tester replays historical prices and runs your EA against them, simulating the trades it would have taken. Used well, it helps you reject bad EAs — but its results come with real caveats.
Run a backtest, step by step
-
Open the Strategy Tester
In MetaTrader 4, click
View ▸ Strategy Tester, or pressCtrl+R. The tester panel opens at the bottom of the platform. -
Choose the EA, symbol, and period
Set the dropdowns: select your Expert Advisor, the symbol (e.g. EURUSD), and the timeframe. Use Expert properties to adjust the EA's inputs and starting deposit.
-
Pick a modelling model
Choose the testing model: Every tick (most detailed, slowest), Control points (approximate), or Open prices only (fastest, least accurate). Every tick is most realistic for most EAs.
-
Set the spread and date range
Set the spread, then tick Use date to define a from/to range so you test a meaningful, recent period. Optionally enable Visual mode to watch trades play out.
-
Run and review
Click Start. When it finishes, open the Results, Graph, and Report tabs to see net profit, drawdown, total trades, and the equity curve — and check the Modelling quality percentage.
Reading the backtest report
After a run, three tabs matter most:
- Results — every simulated trade, in order.
- Graph — the equity/balance curve (a suspiciously smooth curve can signal over-fitting).
- Report — net profit, profit factor, maximum drawdown, total trades, win rate, and modelling quality %.
Pay close attention to maximum drawdown — the biggest equity drop tells you how painful the strategy gets, not just the headline profit.
Limitations & curve-fitting
Treat results skeptically: modelling quality may be low, MT4's tick history can be incomplete, backtests often assume fixed spread and ideal fills, and real execution adds slippage and requotes. Worst of all, optimising inputs until the backtest looks perfect usually means you've curve-fitted to past noise — and it fails live. Use the tester to reject bad EAs, then forward-test on demo. A strong backtest never guarantees future profit.
Backtest looks promising? Forward-test it
Take a tested EA live on tight ECN pricing — FP Markets offers ECN execution and a free demo to forward-test on before you commit real funds.
⚠ Trading forex and CFDs is high-risk and most retail traders lose money. This is not financial advice.
Affiliate disclosure: we may earn a commission if you open a broker account through our links, at no extra cost to you. Learn more.
Next steps
Got an EA to test? See how to install it, run it 24/5 on an MT4 VPS, and size positions with the lot size calculator.
Frequently asked questions
How do I open the Strategy Tester in MT4?
Click View ▸ Strategy Tester, or press Ctrl+R. The tester panel opens at the bottom of MetaTrader 4. From there, pick your Expert Advisor, symbol, timeframe, and modelling model, set the spread and date range, then click Start.
What's the best modelling model in the MT4 Strategy Tester?
'Every tick' is the most detailed and realistic, so it's generally best for testing EAs, though it's the slowest. 'Control points' and 'Open prices only' run faster but are less accurate. Always check the modelling-quality percentage in the report.
Why is my backtest different from live trading?
Backtests use historical data with assumed spread and ideal fills. Live trading adds real spread widening, slippage, requotes, latency, and incomplete tick history. Over-optimised settings also fail forward. A backtest is a guide, never a guarantee of live results.
What is modelling quality in MT4?
Modelling quality is a percentage in the backtest report showing how completely the tester reconstructed price movement from available data. Higher is more reliable; a low percentage means gaps were interpolated, so treat the results with extra caution.
What is curve-fitting (over-optimisation)?
Curve-fitting is tuning an EA's inputs until it looks perfect on past data, fitting historical noise rather than real edge. Such settings usually fail on new data. Favour parameters that perform reasonably across a range of values, and always forward-test on demo.
Trading foreign exchange and contracts for difference (CFDs) carries a high level of risk and may not be suitable for all investors. Leverage can work against you as well as for you. You could lose some or all of your deposited funds; do not trade with money you cannot afford to lose. Past performance is not indicative of future results. Nothing on MT4Download.com is financial, investment, or trading advice. Consider your circumstances and seek independent advice if needed.