OrdersTotal() ===> I have a question.

 

My EA sent order message 3 times. (each 10 lots, buy-position)

But I have no buy-position yet. (Three order messages have already been sent, but no position in my account yet because of delay time) 

 Then, what is the OrdersTotal() in EA's viewpoint?

Zero.. ?  (EA counts how many times the position-openning has been finished...?)

Or....Three....?  (EA counts how many times the ordermessage has been sent, even though the position-openning not finished yet...?)

 
deathforlife:

My EA sent order message 3 times. (each 10 lots, buy-position)

But I have no buy-position yet. (Three order messages have already been sent, but no position in my account yet because of delay time) 

 Then, what is the OrdersTotal() in EA's viewpoint?

Zero.. ?  (EA counts how many times the position-openning has been finished...?)

Or....Three....?  (EA counts how many times the ordermessage has been sent, even though the position-openning not finished yet...?)

As far as I am aware . . .  OrdersTotal() is the number of open and pending orders . . .  if your OrderSend() fails it is not an open or placed pending order . . .
 
deathforlife:

My EA sent order message 3 times. (each 10 lots, buy-position)

But I have no buy-position yet.

What are Function return values ? How do I use them ? - MQL4 forum Check and find out WHY
Reason: