Guide · Trading Bots · Updated November 2026

How to Backtest an EA in MT5

A backtest shows how a bot would have performed in the past. It is the single most useful check before you trust any EA — if you run it correctly and read it honestly.

Step 1 — Open the Strategy Tester

In MT5, press Ctrl+R or go to View → Strategy Tester. The tester panel opens at the bottom of MT5.

Step 2 — Set it up correctly

  • Expert: choose the EA you want to test.
  • Symbol: the pair the bot trades (for example XAUUSD).
  • Timeframe: the bot's timeframe (for example H1 or M15).
  • Model: choose "Every tick based on real ticks" — the slowest but most accurate model. "Every tick" and "1 minute OHLC" can flatter a scalper's results.
  • Date range: test at least 6–12 months. A 2-week backtest proves almost nothing.
  • Deposit: set the same balance you plan to trade with (for example $500 or $1,000).

Step 3 — Run and read the results

Click Start and wait. When it finishes, open the Backtest and Graph tabs. Read these numbers first:

NumberWhat it meansWhat is healthy
Total net profitProfit minus loss over the whole testPositive, but never judge by this alone
Profit factorGross profit ÷ gross lossAbove 1.5 is good; above 2 is strong
Max drawdownThe biggest peak-to-trough fallSmall is better — under 10% is comfortable
Win rateShare of winning trades40–70% is normal; 90%+ usually means hidden risk
Total tradesHow many trades the test madeMore trades = more reliable result

Step 4 — Check the equity curve

Look at the Graph tab. A healthy bot climbs with small dips. A curve that goes flat for months, then jumps in one week, is usually luck — not an edge. Also check the worst losing streak: if the bot once lost 8 trades in a row, your account must survive that happening again.

Step 5 — Forward-test on demo

A backtest is the past. The real test is forward testing on a demo account for 1–2 weeks: same settings, live prices. If the demo results look nothing like the backtest, trust the demo — and do not buy the bot.

Common questions

Can a backtest guarantee future profit?

No. A backtest shows the past, not the future. Markets change. A good backtest plus a good demo test is the best evidence you can get — never a guarantee.

Why do my backtest results differ from the seller's?

Usually the data feed (different brokers have slightly different gold prices), the date range, or the model setting. Ask the seller for their exact settings — symbol, timeframe, dates, model, deposit — and re-run with those.

What is a red flag in a backtest?

Profit factor under 1.2, drawdown above 30%, a win rate above 90% with martingale-style growing lots, or a test period shorter than 3 months. Any of those means: walk away.

See Our Backtests → ← How to Install an EA

Risk disclaimer: Trading forex and gold involves substantial risk of loss and is not suitable for every investor. Past performance does not guarantee future results. These tools enforce discipline; they do not predict the market. Never trade with money you cannot afford to lose.

👁 Total Visits: …

📖 Trading Book — Hadi Gold Trading Strategy · 📰 Crypto News

© 2026 Botifyer · www.botifyer.com