How to differientate if a position has been closed by an user manually or by the EA logic?
Is this possible?
1) the EA has to save the ticket number
2) the EA to delete this ticket number in case the EA closes it.
3) If this ticket number 'disappers' (OrdersTotal()) or OrderClose() creates an Error (most probable):
you the EA should know it has been closed by someone or something (STP,TGT) else.
Ticket numbers never disappear, they only move from active list to the history list. If a pending order is deleted, or an open order is closed (by what ever reason) it is in the history list. If you select by valid ticket you will get the order.
So its no possible.. I think it should be implemented, could have its functionality!
To add comments, please log in or register