open 1 order when EA works at multiple pairs - page 2

 
Ahmet Metin Yilmaz:

good for you

if( 0>StringFind(msymbols,OrderSymbol()) &&OrderMagicNumber()==Magic)


thank you

 
Oussama Mansour:

if( 0>StringFind(msymbols,OrderSymbol()) &&OrderMagicNumber()==Magic)


thank you


That only fixes part of your original want.  What happens when 2 pairs place a trade at exactly the same time and there are no open trades?

 
Max Brown:


That only fixes part of your original want.  What happens when 2 pairs place a trade at exactly the same time and there are no open trades?

oh I don't have an idea .

could you please give me a solution ?

 
Oussama Mansour:

oh I don't have an idea .

could you please give me a solution ?


Go to here: https://www.mql5.com/en/forum/159398

Prevent EA from opening trades at the same time across 2 or more pairs?
Prevent EA from opening trades at the same time across 2 or more pairs?
  • 2016.06.20
  • www.mql5.com
I've got an EA that runs on many currency pairs/charts, and sometimes 2 or more charts will trigger trades at nearly the exact same time...
Reason: