I have an issue with an EA I wrote. It seems to at times place an extra order. It has only been one extra order. It does not do it all the time. Is this a common issue with EAs? Perhaps someone knows the solution right off which would be very helpful. Otherwise I will post the code snippets that handle the order placement. The system allows one long position placed and one short position but checks for open trades before sending new orders. The extra order opened has the same open time as the first order. I wonder if there is a small delay from when the order is placed to when it is registered as open in MetaTrader?