get ticket number for partially closed orders

 

Hi all,

I need suggestions on getting the ticket number of partially closed orders. For example, I have 2 lots of some symbol and the ticket number is X. Now if I close 1 lot of this order using

OrderClose(X, 1, .... ).

Now, 1 lot is being closed and the remaining 1 lot is reopened as a new order by the server with a new ticket number. Is there a way to get this ticket number or ask the server to use the old ticket number.


Any suggestion is appreciated.


Thanks,

Suresh.

Reason: