check buy or sell action from 2 symbols

 

how to check buy or sell action from 2 symbols w/ one EA (chart)?

fex. if eurusd = sell && gbpusd = buy

if(OrderType()>OP_SELL && OrderSymbol()==EURUSD)
 
Are you talking about current, open orders ? or are you talking about signals ?
 

sorry, I mean if it's possible to use signals from other symbols w/ one chart/ ea ...

... EA is attached to eurusd and should check a buy or sell signal from gbpusd ...

 
fulltilt:

sorry, I mean if it's possible to use signals from other symbols w/ one chart/ ea ...

... EA is attached to eurusd and should check a buy or sell signal from gbpusd ...

Sure, what are you using to produce the signals ?
 
indicators not needed ... it should be very simple ... ordertype or action is working?
OrderType() == OP_SELL
 
fulltilt:
indicators not needed ... it should be very simple ... ordertype or action is working?
You need to read the documentation . . . OrderType gives the type of the order ( types ) for an Order that is already open . . .
 
thanks, could you please give me a sample how to use it w/ a symbol other than current chart?
 
fulltilt:
thanks, could you please give me a sample how to use it w/ a symbol other than current chart?
No. read the documentation . . .