When exactly does OrdersTotal() command record no. of open orders in trade terminal?

 
Hi,

I wanted to know at exactly what stage of the order process (see below - stage 1,2,3,4) does OrdersTotal() record the number of orders open in the trade terminal. Is it at stage 2 or 4?

4 - 2006.05.04 20:59:20 '404764': order is open : #477700 buy 1.00 EURUSD at 1.2600 sl: 0.0000 tp: 0.0000
3 - 2006.05.04 20:59:20 '404764': request in process
2 - 2006.05.04 20:59:20' 404764': request was accepted by server
1 - 2006.05.04 20:59:20 '404764': instant order buy 1.00 EURUSD at 1.2600 sl: 0.0000 tp: 0.0000

Thank you.

Regards

RJF
 
1,2,3 and 4 are whole transaction. Orders total amount will be changed after 4.
BTW expert waits for end of transaction and OrderSend function returns control after 4.
 
Hey there,

Thanks Slawa. FYI, I studied Advanced Finance so im a bit rusty on computer programming, so i am now learning the basics of Python language to brush up a bit. I appreciate your patience with me.

Regards

RJF
Reason: