Thread: How to code?
View Single Post
  #350 (permalink)  
Old 09-11-2007, 03:08 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 565
Michel is on a distinguished road
Quote:
Originally Posted by natsirte View Post
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) { 
Reply With Quote