Before you run a robot on a live account, test it on past data. MetaTrader 5 has a built-in Strategy Tester for this.
Run your first test
- Open the tester with View → Strategy Tester (or press Ctrl+R).
- Choose the Expert (your robot), the symbol and the timeframe.
- Set the date range — at least one or two years if you can.
- For modelling, pick Every tick based on real ticks for the most realistic result.
- Enter your deposit and leverage, then click Start.
What to look at
- Maximum drawdown — the biggest fall from a peak. Can you live with it?
- Profit factor — gross profit divided by gross loss.
- Number of trades — too few trades can be luck.
Be careful
A backtest shows the past, not the future. Settings tuned too closely to old data often fail later, so test on a demo account before going live.



