Multiple EAs - how to place only 1 Buy or Sell of 1 symbol - or how to delete duplicate trades
-
I run multiple EAs (with diffrent inputs - It's too big to combine all EAs in one). I set that EA only open trade if there is no trade (Buy/Sell) for each symbol. However, maybe because of EA's acting too fast (5-10 EAs running at the same time), sometimes there are duplicate trade such as 2 Buy EURUSD.
Example : open trades:
2 Buy EURUSD
1 Sell EURUSDHow to delete 1 Buy EURUSD because of duplication ?
I think there are solutions :
- Combine all EA's input in one EA. However, it's too big to create one EA like that.
- Set EA running one after another (not running same time, like the second EA runs after the first EA finished). Is there anyway to set like that ?
- Create another EA to delete duplicate trades. How to build this EA ?
Any suggestions are welcome.
-
@migen
I don't think running multiple EAs on the same chart is a good idea, however the solution 3 is possible:

Do the same with sells instead of buys, beside. -
Thanks ! I have just builded the EA - close duplicate buy/sell of any symbol (here is all of symbols -28 pairs).

-
hi
you need to change magic number
-
@migen
Good for you if it works : ) -
hi
is it work ?