EA loses track of trades after broker is closed.

 

Hi,

I have an EA which enters and exits trades on the open of a bar on a 5min chart. If the EA tries to close a trade when my broker's platform is closed (on the weekend and once a day from 12:00am to 12:05am) it fails to close the trade and opens a second trade as if there was no trade open. Only one trade is permitted to be open at once. How do I fix this problem? thx

 
aspro123: I have an EA which enters and exits trades on the open of a bar on a 5min chart. If the EA tries to close a trade when my broker's platform is closed (on the weekend and once a day from 12:00am to 12:05am) it fails to close the trade and opens a second trade as if there was no trade open. Only one trade is permitted to be open at once. How do I fix this problem? thx
The EA is not properly coded. If you're a programmer then fix the code || post the parts of the codes you're having problems with. If you're not a programmer then pay someone to fix it. Or contact the programmer who programmed it.