HELP EA open multiple orders

 

good morning everyone,

I created a simple EA that reads the positions from CSV and executes the orders. would it be possible to open positions of symbols other than just one EA?

I try to explain myself better, create a script / EA and attack it to a chart, for example EURUSD, it would be possible to open from that chart orders on another symbol (example USDJPY)?

the problem I find is that when I do SendOrder ("USDJPY" ... from an EA attack on another chart it gives me back an error

 

Please write in code.

It is possible but when you write OrderSend("USDJPY"..  You also have to use ask & bid from USDJPY and not from EURUSD.

 
Marco vd Heijden:

Please write in code.

It is possible but when you write OrderSend("USDJPY"..  You also have to use ask & bid from USDJPY and not from EURUSD.

Great solution!!!

double pAsk = MarketInfo("USDJPY", MODE_ASK)

Reason: