EA will not open other trade during the trade opened, it need to wait it end

 

As Newbie, I just know to use below code

total = OrdersTotal();
if(total < 1)

and the EA will not open other trade during the trade opened, it need to wait it end

that make it miss out a lot entry chances

I still working with my simple EA

https://www.mql5.com/en/forum/137972

How to code it open second trade while the first trade still running?

 

You can't get much simpler or obvious than the code you have posted. Read the Documentation for OrdersTotal()

If you can't understand what it means then you had better start learning . . . . Book

Reason: