How to test a trading bot on a demo account
A practical plan for testing an MT5 trading bot on demo: how long, how many trades, what to measure, and how demo differs from live before you risk real money.
A demo account lets you watch a bot trade with virtual money at real market prices. It is the cheapest way to find out whether a bot does what its seller claims. It is also easy to draw the wrong conclusion from a demo test, in both directions. Here is how to test properly.
Step 1: set it up exactly as you would live
Use the same broker and account type you plan to trade live, the same starting balance and the same risk settings. A demo with $100,000 and default settings tells you little about a live account with $2,000. Make sure the bot runs on the same computer or VPS you will use later, with the same uptime.
Step 2: give it enough time and trades
A week tells you whether the bot installs, connects and places orders correctly. It does not tell you whether the strategy works. One week can easily contain only losing trades for a good strategy, or only winners for a bad one.
As a rough rule:
- 1–2 weeks: technical check. Does it open, manage and close trades as described? Are stops always placed? Do alerts arrive?
- 1–3 months: first impression of behaviour across different market conditions.
- 50–100+ trades: the beginning of a meaningful statistical picture. Trend-following bots trade less often, so they need more calendar time.
Step 3: measure the right things
Don’t look only at the profit number. Track:
- Maximum drawdown: the deepest fall from a high. See drawdown and the daily loss limit.
- Profit factor: gross profit divided by gross loss. Above 1 means it made money; a thin edge such as 1.1 can disappear with live costs.
- Win rate and average win versus average loss: a 35% win rate is fine if winners are three times bigger than losers.
- Risk per trade in practice: check that the actual loss on stopped trades matches the risk setting.
- Behaviour in bad moments: what did it do around big news, at rollover, on Friday evening?
Step 4: compare with what was promised
Check the bot against its own description. If it says every trade has a stop loss, verify it in the MT5 history. If it says it skips news, look at trades opened right before major releases. Small differences between promise and behaviour are the most useful finding of a demo test.
How demo differs from live
- Fills: demo orders often fill instantly at the requested price. Live orders can slip, especially around news.
- Spreads: some brokers show different spreads on demo.
- Psychology: watching virtual money fall is easy. Watching real money fall makes people switch bots off at the worst moment.
Expect live results to be somewhat worse than demo, and start live with a smaller amount and the same or lower risk.
A simple test checklist
- Same broker, balance and settings as planned for live.
- Bot running on the final computer or VPS.
- At least several weeks, ideally until 50+ trades.
- Every trade checked for a stop loss at the broker.
- Drawdown, profit factor and risk per trade recorded.
- A decision rule written down in advance, for example: “Go live only if drawdown stays below 15% and the bot behaves as described.”
Testing gicleur
The gicleur free trial lasts 7 days and works on demo accounts only, which is enough for the technical check. That is not enough time to judge the strategy statistically, so we recommend keeping it on demo for longer after subscribing; the paid license works on demo and live, and live trading stays switched off until you turn it on. Our own accounts, shown on the home page, are demo accounts too, and every trade there includes its broker ticket number.
The short version
Use the demo test to verify behaviour quickly and judge performance slowly. Decide in advance what would convince you, and expect live trading to be a little harder than demo.