Can the order ticket, returned by OrderSend, possible be 0 (null)?

 
Dear mql4 forum user

Can the order ticket, returned by OrderSend, possible be 0 (null)?
Or in other words, can 0 be an actual order ticket number?

With kind regards
Pecival
 

Basically yes, but I do not believe

 

No, I don't think that 0 is a correct value for order ticket. And NULL value is absolutely not suitable.

It should return an integer > 0 if success and -1 if fail.

 
hasayama:

No, I don't think that 0 is a correct value for order ticket. And NULL value is absolutely not suitable.

It should return an integer > 0 if success and -1 if fail.


i'm sorry but 0 is an integer too

OrderSend() Returns number of the ticket assigned to the order by the trade server or -1 if it fails

no one says anywhere that ticket no. 0 doesn't exist

& no one says anywhere that "It should return an integer > 0"

"And NULL value is absolutely not suitable." on this one i agree with u

 

In theory, it can return any integer value, I believe it depends on server adjustments, but in reality - is there any practical use of ticket 0?

 

Ordersend returns a integer >=0 if succeed and -1 if fail

//z