Mql5 error

Hello Mql5

Strategy tester and metatrder 5  demo account produce different results during tests or execution.

May you help fix the metatrader 5 platform error.

The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • 2011.05.18
  • www.mql5.com
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
Bongumenz:
metatrder 5  demo account

It was my reply on the different thread:

Forum on trading, automated trading systems and testing trading strategies

Metaquotes feed just blew up, demo accounts destroyed.

Sergey Golubev, 2026.10.28 11:21

I know that MetaQuotes Demo server is mostly used to update MT5 to beta build and to test beta builds for possible error on software in beta builds.
And the brokers should be used for any other cases (trading and testing). Because MetaQuotes is not a broker. 

---------------------

As I see here - the people are using MetaQuotes Demo server for trading and testing of the EA - which is very strange for me sorry.


Besides, the strategy tester and trading on trading accounts are often reproduce the different results, and it has nothing to do with MT5 platform.
Check this summary thread for more information:

All (not yet) about Strategy Tester, Optimization and Cloud
All (not yet) about Strategy Tester, Optimization and Cloud
  • 2013.08.20
  • www.mql5.com
The text provides an extensive overview of the MetaTrader 5 Strategy Tester, its functionalities, limitations, and usage scenarios. It covers testing strategies, optimization techniques, cloud network capabilities, and common issues faced by users. The content also discusses the differences between testing and optimization, the importance of real tick data, and the challenges of using the tester with custom data feeds.
Bongumenz #:
Strategy tester and metatrder 5 demo account produce different results during tests or execution. May you help fix the metatrader 5 platform error.
Hi Bongumenz, it is not an error, the tester and a live chart are two diferent worlds and they will never give the same numbers. The things that change the result the most, from what I see every week with my own EAs:

Spread. In the tester you probably have a fixed spread or the last one the terminal saw. On the demo the spread moves all day and at rollover and news it opens a lot. Same entry, diferent fill.

Tick mode. If you tested with 1 minute OHLC or open prices only, the tester invents the ticks inside the candle. Run it again with Every tick based on real ticks and a real spread and you will see the result get closer to the account.

Slippage, swaps and commission. The tester fills you at the exact price, the demo does not, and if you hold overnight the swap changes the balance. Check that the symbol specs in the tester match the ones of the demo account.

And one more: the MetaQuotes-Demo server is having problems this week, there are several threads about it. Test on a demo of the broker you are going to use, with its real quotes, not on the MetaQuotes one. Then compare the same period, same symbol, same settings, and the diferences get small enough to live with.