Iury Mendes Da Silva:
If they both allowed to open just one order, the easiest way is to use PositionsTotal() == 0 for both (in mt5) and only when it's 0 allow opening a new position.Hi, guys!
Is there any way of stopping an EA of working? Let me explain.
I have 2 EAs, but I want to use only one of them each time. So, If EA-1 has an open order, I don't want EA-2 to open another order. When that first order is closed, I would like to allow both EAs to work together again. And so on, if EA-2 opens an order, EA-1 stops until that order is closed.
If more than one position allowed to ea - use different magic numbers for each ea.
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
Hi, guys!
Is there any way of stopping an EA of working? Let me explain.
I have 2 EAs, but I want to use only one of them each time. So, If EA-1 has an open order, I don't want EA-2 to open another order. When that first order is closed, I would like to allow both EAs to work together again. And so on, if EA-2 opens an order, EA-1 stops until that order is closed.