Download MetaTrader 5

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

To add comments, please log in or register
jackee1234
197
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?
Meng Yin Teoh
1620
Meng Yin Teoh  
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.
whroeder1
16058
whroeder1  
Or just use a OrderSelect loop to find the highest ticket number for the given pair.
To add comments, please log in or register