Executing orders on multiple symbols simultaneously

 

Hi, i would like to program strategy which can execute orders on multiple symbols simultaneously. Not only use other instruments for information about "data1". Imagine strategy with 3 data samples, you want to execute orders on two of them and use third like an indicator.

Is that even possible in MT? In case it is, does anybody have any idea how to do it (can you share a code)?

Thank you

 
 

It is possible, declare your symbols as variables.

Then create tickets:

ticket = subOpenOrder(Symbol_2, OP_BUY, 0, 0, Lots_2);

 
krpalek:
i would like to program strategy which can execute orders on multiple symbols simultaneously.
Can't be done. You can only call OrderSend() one at a time and open as quick as your broker's server can process.
 

You would have to have more than one trading account and run a separate instance of mt4 for each one

Reason: