HELP EA open multiple orders

To add comments, please log in or register
sartuxtips
43
sartuxtips  

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

Marco vd Heijden
Moderator
12714
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.

sartuxtips
43
sartuxtips  
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)

To add comments, please log in or register