Markets live
    All posts MT5

    How to backtest an EA in the MT5 Strategy Tester

    KastleChart Team · Oct 20, 2026 · 1 min read
    How to backtest an EA in the MT5 Strategy Tester

    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

    1. Open the tester with View → Strategy Tester (or press Ctrl+R).
    2. Choose the Expert (your robot), the symbol and the timeframe.
    3. Set the date range — at least one or two years if you can.
    4. For modelling, pick Every tick based on real ticks for the most realistic result.
    5. 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.