Placing orders with MT3 api

 
I am developing using the metatrader 3 api
Here's my question:
Say I have 10 1 unit buy positions. Then, say I want to perform 1 10 unit sell order.

Now, I need to enact 10 CloseByOrder(..,..) calls. How long do I need to wait between API calls, to avoid "too frequent requests" error messages? Thanks.
 
Andrew,

Check the 'coupla MetaTrader3API questions' thread

Cheers,
calidragon
 
How long do I need to wait between API calls, to avoid "too frequent requests" error messages? Thanks.

5 seconds between trading operations
 
whoops. my mistake. I meant to post under this thread instead of the "couple MetaTrader3API questions" trade. Below is my post:

<<
another question - when I place an order using SendOrder and it returns RET_OK, am I guaranteed that the order will eventually be placed with the specified price? If so, why does the order take some time before it appears on the trades list? Thanks.
>>

Please respond under this thread instead of under the other thread.
Reason: