I am having a problem in MT4 where I try to call OrderTicket() to determine the ticket number for any possible open orders.
the return from the OrderTicket() call is a ticket number from the last closed order. I can see on the screen that that particular
ticket number has been closed and there is a newer open order with a subsequent higher ticket number.
How do I identify the existing open order using code (mt4). My intention is to use the ticket number to close the order if market conditions dictate.
Thanks in advance.
To add comments, please log in or register