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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
As Newbie, I just know to use below code
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?