two operators should be executed simultaniously

 

I have two operators. One includes a buy order, the other one includes a sell order.

If now order is open it should open both operators. But it does not work.

The code looks like this:

if (OrdersTotal() == 0)

{

{ operator one }

{ operator two }}

Thanks for your help

cp

 
Mt4 does Not support simultaneous processing of orders. Order1 will process first then its Order2 time. In your example, it should place the Buy order first if its Operator One and then place a Sell order if it's Operator 2.
Reason: