Orderticket () is not retuning empty_value after the ticket has close

 

Orderticket () is not retuning Empty_value after the last ticket has close...always returns the last ticket number. If Metattrader 4 is stopped, shutdown and restarted Orderticket () does not return the last ticket closed, the value is 0.. Should I create a buffer for the value? I am working with a single lot EA.

Thanks

Mike

Reason: