Disliked{quote} You should fix your CloseAll() function, your loop needs to count down, not up. This explains why: Loops and Closing or Deleting OrdersIgnored
I have experienced this problem before, not in my EA but some other ones I use to close or delete orders. I'll change the code as soon as I get time and issue an update. I like the way you explained it - super methodical. Sometimes the cause of the issue doesn't show itself until you step through the code.
Alan