Good question. My broker shows it in the common of the order, I guess maybe you can't rely on that though.
One way is give each order a unique magic number or comment.
Another way to try is search all open orders for the correct ticket number, store it's position, then get the ticket number of the same position after partially closing. Just don't open or close other orders in the mean time. I don't know if partially closing changes to order position, maybe if it sticks the order at the end, it will make it easier
so whats the number for the lots left?
What is the ticket number for the remaining 0.4 lots?
Is that a way for me to know that number when i close order 11?
- New = Original - Close. DUH
- Assigned by the broker just like the original. DUH
- OrderSelect loop (counting down) and find the new one.
Hi,
Im a little bit confused with the ticket number for the order remaining, i have been doing tests and the order closed partially is the one with the ticket number already assigned with the beginning lots so whats the number for the lots left?
Ex:
I open an order with 1 lot and get ticket number 11.
I close order 11 using only 0.6 lots.
What is the ticket number for the remaining 0.4 lots?
Is that a way for me to know that number when i close order 11?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
Im a little bit confused with the ticket number for the order remaining, i have been doing tests and the order closed partially is the one with the ticket number already assigned with the beginning lots so whats the number for the lots left?
Ex:
I open an order with 1 lot and get ticket number 11.
I close order 11 using only 0.6 lots.
What is the ticket number for the remaining 0.4 lots?
Is that a way for me to know that number when i close order 11?