mt4 the sleep() fuction is what?

 
if i want ordersend ten of sell_limit tickets at the same time,so i want konw what i to do this,the slleep can help me? the sleep() fucion is mean?
 

Sleep()

"The Sleep() function suspends execution of the current expert within the specified interval."

 
zdj229:
if i want ordersend ten of sell_limit tickets at the same time,so i want konw what i to do this,the slleep can help me? the sleep() fucion is mean?

Also see IsTradeContextBusy() which you can check after placing each order and wait until each one is processed before sending the next one.

Regards, paul.

 
paul_hughes:

Also see IsTradeContextBusy() which you can check after placing each order and wait until each one is processed before sending the next one.

Or even better avoid the situation up front by using a Mutex.
Reason: