Inconsistent of Closing Tickets
if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure).
Enclosed:
- Call to close long and short
- Code of closing functions
- Figure show not all are closing
Improperly formatted code edited by moderator. Please ALWAYS use the CODE button (Alt-S) when inserting code.
I was using selected by ticket but I ran to issue of I can only close one ticket. Program ignores other ticket (return ticket not found). I will modify my code to use Trade class. Does the existing "return ticket not found" issue has been resolved? If it does. Please shoot me the link.
Thanks
if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure).
Enclosed: