Im logging trade times using OrderOpenTime() and OrderCloseTime(), which helps me keep track of my trades. However, at times, I need to manually close a trade that has been opened by my EA. But whenever I close a trade manually, the EA does not record the OrderCloseTime().
How can i get my EA to recognize my manual action, and print the OrderCloseTime() for such trades?
As the EA opens trades, store the ticket numbers in an array
Loop through the array and check whether the order has been closed
If so, log the OrderOpenTime() and OrderCloseTime() and remove the order from the array
To add comments, please log in or register