Quote:
Originally Posted by natsirte
Hi evrerybody
Is it possible to make working my two EA?
- in the same time
- in the same Timeframe (ex : 1 minute)
- and with the same Currency Pair (ex :EUR/USD)
I've change the MagicNumber (EA_1 = 10 ; EA_2 = 20) but they're working one after another even if, the conditons for a trade are good for each .
Help me please.
Thanks!
|
Replace the line :
PHP Code:
if(OrderType() <= OP_SELL && OrderSymbol() == Symbol()) {
by this one :
PHP Code:
if(OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber) {