Testing & Risk tutorial

How to Test a Forex Bot on a Demo Account

A backtest shows the past; a demo forward test shows how an EA behaves with live prices, spreads and execution — without risking money. Set one up properly and know what to look for.

Beginner About 25 min(estimate) 7 stepsPublished

Times are estimates — they vary with your computer, connection and experience.

Before you start

  • MT4 or MT5 installed — see the MT5 or MT4 install tutorial.
  • The EA installed and configured — see Configure EA Settings.
  • A computer or VPS that can keep MetaTrader running during the test.

What you'll learn

  • Open a demo account that resembles your planned live account.
  • Run the EA with the same settings you'd use live.
  • Judge the result against the backtest and the EA's documentation.

Steps

  1. Step 1: Open a demo account with your broker

    Use File → Open an Account, or open a demo in your broker's client area. Choose the same account type, currency, leverage and a balance close to what you'd actually trade.

  2. Step 2: Log in and install the EA

    Log in to the demo account, then install and attach the EA as in the MT5 or MT4 tutorial.

  3. Step 3: Use your real settings

    Load the same .set file you plan to use live. Testing with a larger lot size or a different symbol than you'll trade makes the result meaningless.

  4. Step 4: Keep MetaTrader running

    The EA only works while the terminal is open and connected. Disable sleep on the computer, or run the test on a VPS, and check the connection status daily.

  5. Step 5: Keep a simple log

    Once a day or week, note:

    • Balance, equity and the deepest drawdown so far.
    • Number of trades and any errors in the Experts or Journal tabs.
    • Anything unusual — trades during news, wide spreads, missed sessions.
  6. Step 6: Run it long enough

    Give the test several weeks and enough trades to mean something; an EA that trades rarely needs longer. A handful of trades proves very little either way.

  7. Step 7: Compare with the backtest and documentation

    Are trade frequency, average trade and drawdown in line with the backtest for a similar period? Large differences usually come from spreads, slippage or execution — and are what you'd see live.

Expected result

Several weeks of demo results on your real settings, with a log of drawdown, trades and errors that you can compare with the backtest before deciding whether to risk real money.

Troubleshooting

My demo account expired
Some brokers expire inactive demos. Open a new one and keep the terminal logged in regularly.
Demo results look much better than expected
Demo execution can be more favourable than live. If you go live, start with the smallest position size.
Gaps in the results
The terminal was probably closed or disconnected. Check the Journal for disconnects and consider a VPS.

Next tutorial

How to Evaluate a Forex Bot Before Purchasing

Walk through a forex bot listing before you buy: quality signals, documentation, compatibility, changelog, verified reviews and questions for the seller.

Continue

Related tutorials

All tutorials
  • Testing & RiskIntermediate

    How to Run a Strategy Backtest in MT5

    Run an Expert Advisor backtest in the MetaTrader 5 Strategy Tester: choose the modelling mode, deposit and delays, then read the report and graph honestly.

    About 30 min(estimate) 9 steps
  • Forex Bots & EAsIntermediate

    How to Troubleshoot an EA That Isn't Trading

    Work through the checks that fix most idle Expert Advisors in MT4 and MT5: permissions, market hours, the logs, broker rejections, filters and inputs.

    About 20 min(estimate) 8 steps