trading functions: local or remote answers?

 

Hi,


does anyone know where in general the 'answers' of the trading function are stored: eitheralready hold locally in the client-MT4 or remotely at the server?

Especially: OrdersTotal().

Thanks in advance!
 

OrderSend sends message to server. server sends message back with all current updated data.

Order closes on (TP/SL) server sends message back with all current data.

OrdersTotal and the arrays selected by OrderSelect are local and are updated asynchronously by the server. This is why you must count down AND test orderSelect

Reason: