TRADING ROBOT GUIDE

How to Backtest an EA in MT5 Strategy Tester

Backtest a trading robot in MT5 with a reproducible setup, real-tick checks, trading costs, equity drawdown and a separate forward-testing period.

GrowWise Algo for MT5Rule-based XAUUSD execution
  • Predefined entry logic
  • Stop-loss and take-profit controls
  • Account-bound licence
  • Protected compiled Expert Advisor
PRACTICAL GUIDE

What traders should know

01

Record the setup before running

Save the robot version, input set, broker server, symbol, timeframe, deposit, leverage and test dates. Comparing reports from different setups can hide the reason results changed.

02

Choose the historical model

Open View → Strategy Tester, select the Expert Advisor and symbol, and choose the test period. For robots sensitive to intrabar prices, consider Every tick based on real ticks where broker data is available. Check the report for data gaps; generated ticks and real ticks are different inputs.

03

Account for costs and execution

Review symbol specifications, spread, commission and swap assumptions, and available execution-delay settings. Historical tests simulate execution; they cannot reproduce every rejected request or live fill.

04

Read equity alongside closed profit

Inspect equity drawdown, open basket losses, trade count, profit factor and the worst loss. A profitable balance curve can still hide substantial floating exposure. Compare net results after costs.

05

Keep an unseen evaluation period

Choose settings using one period, then evaluate on a separate period that was not used to tune them. Changing settings after seeing this result means the period is no longer unseen. Follow with a demo test on the intended broker.

06

Check the journal and retain evidence

Inspect tester logs for invalid stops, missing history, licensing errors and rejected orders. Save reports and settings for each run. Investigate differences before treating a higher return as an improvement.

Explore more trading robot guides

MT5 backtesting guide · Grid bot risks · Compare 10 trading robots · Gold trading robot · XAUUSD EA · Demo testing guide

Important risk notice

Automated trading involves substantial risk. Market conditions, spread, broker execution, lot size and account settings can change results. Past performance does not guarantee future returns.

Further reading

Published 15 October 2026 by GrowWise Algo. This guide explains testing and risk checks; it is not a performance claim.

Read the platform reference →