Why Backtesting Matters

Before trusting any trading strategy with real capital, a sensible trader asks: does this actually work on historical data? Backtesting is the process of running a strategy against past price data to evaluate its performance. MT4's built-in Strategy Tester makes this possible without writing a single line of code — as long as you're testing an Expert Advisor (EA).

What You Need Before You Start

  • An installed Expert Advisor (EA) — either a built-in one or a custom EA placed in the Experts folder.
  • Historical price data for the instrument you want to test (MT4 can download this automatically).
  • A clear understanding of what results you're looking for.

Opening the Strategy Tester

There are three ways to open the Strategy Tester in MT4:

  • Press Ctrl + R on your keyboard.
  • Go to View → Strategy Tester.
  • Click the Strategy Tester icon in the toolbar.

The Strategy Tester panel will open at the bottom of the MT4 window.

Configuring Your Backtest

In the Strategy Tester panel, you'll need to configure several settings:

1. Select the Expert Advisor

Use the Expert Advisor dropdown to choose the EA you want to test. Only EAs compiled in MT4 will appear here.

2. Choose the Currency Pair and Timeframe

Select the Symbol (e.g., EUR/USD) and Period (e.g., H1 for 1-hour charts) that match how the EA is designed to be used.

3. Select the Modelling Method

Model Description Accuracy
Every tick Uses tick data for the most accurate simulation Highest (slowest)
Control points Uses fewer data points, faster but less accurate Medium
Open prices only Tests at candle open only — fastest, least precise Lowest (fastest)

For most EAs, Every tick is recommended for the most reliable results.

4. Set the Date Range

Check the Use date box and set your start and end dates. Testing over at least 1–3 years of data gives more statistically meaningful results than a few months.

5. Set Initial Deposit and Leverage

Enter a starting balance that reflects your real (or planned) account size. Set leverage to match what your broker offers.

Running the Backtest

  1. Once all settings are configured, click the Start button.
  2. Watch the progress bar — "Every tick" tests can take several minutes for large datasets.
  3. When complete, click the Results tab to see individual trade data.
  4. Click the Report tab for a full performance summary.
  5. Click the Graph tab to view the equity curve.

Interpreting the Key Metrics

  • Profit Factor: Total gross profit ÷ Total gross loss. Anything above 1.3–1.5 is considered reasonable.
  • Expected Payoff: The average profit or loss per trade. Should be positive.
  • Max Drawdown: The largest peak-to-trough decline in account balance. Lower is better — ideally under 20%.
  • Total Trades: More trades = more statistically significant results. Under 100 trades may not be reliable.
  • Win Rate: Percentage of profitable trades. High win rate alone doesn't mean a strategy is good — consider it alongside the risk/reward ratio.

Important Limitations of Backtesting

  • Past performance doesn't guarantee future results — market conditions change.
  • Data quality matters: Poor historical data leads to misleading results.
  • Curve fitting risk: An EA optimised too heavily for historical data may fail on live markets.
  • Spread and slippage: Always enable Use spread in the settings to simulate realistic execution conditions.

Next Steps After Backtesting

A successful backtest is just the beginning. Always follow up with forward testing on a demo account before going live. This lets you verify that the strategy performs similarly in real-time market conditions, including the psychological challenge of seeing real (simulated) money at risk.