My ea opens multiple trades at a time

 
My coded mql5 when back tested works perfectly opening a trade one at a time according to my command but when I run the code on a demo live trade it opens multiple trades at a time why?
 
Debugging MQL5 Programs
Debugging MQL5 Programs
  • www.mql5.com
This article is intended primarily for the programmers who have already learned the language but have not fully mastered the program development yet. It reveals some debugging techniques and presents a combined experience of the author and many other programmers.
 
julliandinho: My coded mql5 when back tested works perfectly opening a trade one at a time according to my command but when I run the code on a demo live trade it opens multiple trades at a time why?

There is a bug in your code. Since we cannot see the source code it we cannot say what is the cause.

Analyse the log output both in the Experts and Journal to get more information.

Reason: