Skip to content

Run a backtest

EA Builder Pro has a built-in backtester: you run backtests of your EA in the cloud, on MetaTrader, without exporting it. With it you quickly find out whether a strategy is profitable.

In short:

  • Click Run backtest in the EA editor, choose the settings and click Run.
  • The backtest waits in a queue, runs on our backtest servers, and shows up in your backtest list.
  • Then read the result: Read your backtest results.

Tick data. Our MT4 backtests use Dukascopy tick data; our MT5 backtests use Pepperstone tick data. Every broker has slightly different tick data, which gives different results, especially for (micro) scalpers. We highly recommend MT5: its tick quality is much better.

Scalping. With scalping strategies, or a low take profit and/or stop loss, spreads and commissions have a big impact on the result. For scalping strategies we recommend to:

  1. Backtest on your local machine only.
  2. Check that spreads, commissions and latency match your broker’s.

Not scalping? Then make sure:

  • On MT5, you use the Every tick based on real ticks test model, for the most accurate ticks.
  • If your account has a commission per lot, the commission column is filled (in MetaTrader: Strategy Tester tab, Orders & Deals).
  1. Log in, and open your EA in the EA editor.
  2. Click Run backtest. The Backtest dialog opens.
  3. Check the settings (see below).
  4. Click Run. The backtest is added to the queue.
Backtest dialog with Name, Period, Spread, Starting balance, Symbol, Timeframe, Execution mode and Test modelBacktest dialog with Name, Period, Spread, Starting balance, Symbol, Timeframe, Execution mode and Test model
The Backtest dialog with the settings of a backtest.

The name of the backtest in your list. It starts as the name of your EA.

The first and the last day of the test. Click the calendar to pick them. A backtest covers at least one day.

The difference between the Bid and the Ask price, in pips. Use the spread of your broker for the symbol, or a little more to be on the safe side.

The deposit the backtest starts with, in USD.

The symbol to test on: currency pairs such as EURUSD, indices such as GER 40, commodities such as Brent Crude Oil and crypto such as Bitcoin.

The timeframe of the chart the EA runs on, from M1 to Monthly. Indicators and Bar operands on Current use this timeframe.

Simulates the delay between placing an order and its execution, like on a real account: from Zero latency, ideal execution to 1000 ms, or Random delay. MT5 only.

Which prices the backtest uses:

  • Every tick: ticks generated from the bars. Accurate for most strategies.
  • 1 minute OHLC: only the Open, High, Low and Close of each 1-minute bar. Much faster; good for strategies that act on closed bars.
  • Open prices only: only the open price of each bar. Fastest; only for EAs that act on the open of a new bar.
  • Math calculations: no price history. Not for trading strategies.
  • Every tick based on real ticks: the real recorded ticks. The most accurate; recommended on MT5.

On the free plan you can run a limited number of backtests per day. The dialog shows how many you have left today.

  1. Your backtest waits in a queue. The queue works first scheduled, first processed: when many backtests are queued, it can take a while.
  2. It runs on one of our backtest servers.
  3. When it’s done, the result shows in your list, with a balance curve and the result.

Follow the progress in the backtest list (Backtest in the navigation). The list shows the backtests of the platform you selected with the platform button (MT4 / MT5) in the app bar.

Changed your EA since the backtest? Open the backtest and click Recover expert advisor: a copy of the EA, exactly as it was for this backtest, is added to your Expert Advisor list.

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.