How to know the new ticket number after partial closed a position

 
When we OrderClose a position partially (say you buy at 2 lots but only close for 1 Lot), it will open a new ticket number, but how do we know that ticket number specifically?
 
jackee1234:
When we OrderClose a position partially (say you buy at 2 lots but only close for 1 Lot), it will open a new ticket number, but how do we know that ticket number specifically?

usually your broker will put a new ticket number at comment section when you partially close an order.
 
Or just use a OrderSelect loop to find the highest ticket number for the given pair.
Reason: