<- Back to Guides
GuideIntermediate8 min

HOW TO BACKTEST EXPERT ADVISORS

Evaluate an EA with historical data before relying on it in a live trading account.

What Backtesting Can Tell You

Backtesting simulates how an Expert Advisor would have traded using historical market data. It is useful for checking whether an EA follows its intended rules and for estimating drawdown, trade frequency, and sensitivity to settings.

Prepare Reliable Data

Use the best available historical data for the symbol, timeframe, and broker conditions you intend to trade. Data gaps, inaccurate spreads, or an incorrect symbol specification can make results misleading.

Match Your Planned Conditions

  • Test the same currency pair, timeframe, and EA version you plan to use
  • Use realistic spreads, commissions, swaps, and slippage assumptions
  • Set the account balance, leverage, and lot size to match your plan
  • Include different market conditions, not only a favorable period
  • Run the Test

    1. Open the strategy tester in MetaTrader

    2. Select the EA, symbol, timeframe, and date range

    3. Apply realistic execution and account settings

    4. Run the test and save the report and equity curve

    Review More Than Profit

    Look at maximum drawdown, trade count, profit factor, consecutive losses, and the equity curve. A large return does not automatically mean a strategy is suitable if it required more drawdown than you can accept.

    Avoid Overfitting

    Do not repeatedly adjust settings until they look perfect on one historical period. Validate any settings on a separate, unseen period and then forward-test them on a demo or small live account.

    Keep the Results in Context

    Historical results cannot guarantee future performance. Market conditions, liquidity, spreads, and execution can change. Use backtesting as one part of a risk-managed evaluation process.

    READY TO START TRADING?

    Browse our collection of Expert Advisors and find the perfect one for your strategy.

    Browse EAs