What is an EA Backtest?
When selecting an Expert Advisor (EA) for Forex trading, it is crucial to evaluate the effectiveness and suitability of the underlying strategy. Rather than relying solely on promotional claims or shared profit results, traders can use “backtesting” to examine how an EA performs using historical market data.
Backtesting provides a comprehensive overview of a system’s trading performance, order management, and risk profile before it is deployed in a live trading environment.
What is Backtesting?
Backtesting is the process of running an EA or trading strategy against historical price data over a specific period.
During this process, the system simulates trading activities based on pre-defined conditions and parameters. Traders can observe how the EA executes entries, exits, and trade management during past market conditions.
For example, an EA designed for gold trading can be tested using historical XAUUSD data from the past 1–3 years. The backtest results provide insights into the number of trades executed, overall profitability, account drawdown, and various other performance metrics.
This serves as a valuable assessment step, helping traders gain a deeper understanding of a strategy before deciding to use it with a live trading account.
How to backtest in MetaTrader 5
To perform a backtest in MT5, you need to open the Strategy Tester. You can do this in two ways:
Via the menu: View → Strategy Tester
Or by using the keyboard shortcut: Ctrl+R
When opened, the Strategy Tester appears on the Overview tab, where you can select the type of test. The simplest option is to choose “Single test.”

In the Settings tab, you can configure the parameters for your test, including:
- The indicator or EA you wish to test
- The symbol (currency pair/asset) and timeframe
- The backtest period (all available historical data, the last month, the last year, or a custom time range)
Note: Some traders may find that the Optimization or Visual Mode features are not visible. This is usually because the Strategy Tester window is too small—it lacks the necessary height to display all the options. Simply expand the window (by dragging its edge) to reveal these settings.

In the Inputs tab, you can modify the settings for an EA or indicator.
Then, click the Start button (the green button in the bottom-right corner) to begin the test.

Once the backtest is complete, the system will display a detailed results table for the EA over the period you selected for testing. You can then review all the information across five tabs: Settings, Results, Graph, Report, and Journal. Each tab offers a different perspective on the EA’s performance—ranging from configuration settings, trade history, and performance graphs to comprehensive reports and trading logs.

The right-click menu allows you to export reports as XML tables or HTML pages.
Pros & Cons of EA Backtesting
Pros:
Quickly evaluate a bot’s performance.
Assist in optimizing strategies and parameters.
Save time compared to forward testing
Cons:
Based on historical data; does not guarantee future results.
Some EAs (e.g., grid or martingale strategies) may show excellent backtest results but can easily lead to account depletion in live trading.
Do not account for factors like slippage, fluctuating spreads, or market sentiment.
Conclusion
Backtesting is a crucial, indispensable step before deploying a bot for live trading. It helps traders assess performance, select suitable EAs, optimize operational parameters, and identify potential risks.
However, keep in mind that backtesting only reflects past data and cannot guarantee future outcomes. For sustainable trading, traders should combine backtesting with forward testing, implement strict capital management, and continuously monitor the bot’s operation to make timely adjustments.
Wishing you successful investments!
If you’re interested, I have curated a collection of EAs for your reference and testing. Feel free to reach out directly to get the full set and explore them for yourself!

