Hi, I was wondering if anyone has experienced the same issue as me and possibly found a solution.
I am using my own EA which was written a long time ago (using pre-Build 600 Meta Editor) and I was using it successfuly for backtesting and optimization before AND after Build 600 was released. This week it suddenly started behaving strangely in live trading, but only sometimes. Despite being coded to have just a single trade at any one time (which was working 100% correctly before this week) it sometimes now opens a series of trades with 2-3 minutes intervals between them obviously coming from the same entry signal. When I looked into the log I have found the following:
So there were 10 attempts to open a trade all of which failed on trade timeout. Then there were attempts to modify the trades (add stop loss) all of which have failed on trade timeout as well. My first question here is - in order for an EA to try to modify an order, the order needs to be present on the server first, but in the log there is no confirmation of acceptance of any of the orders by the broker (just 10 failed attempts, no confirmation). Does it mean that the orders were eventually opened by the broker but my MT4 terminal was not sent a confirmation about it? Usually a confirmation of a new trade looks like: "request was accepted by server", "request in process", "order was opened : #123456..." Because there was no such confirmation my EA thought there is no trade and tried to open a new one again and again. Second question: can the broker somehow add the orders in the server history retrospectively without a confirmation (because this is exactly how it looks like)? All the orders are in my MT4 account history with the same timestamp as the opening a new order attempts that failed on trade timeout.
Then there was another series of attempts to modify the orders which were successful after the automated re-login that happened at 3:16:07.
This has happened on 3 independent computers all running Build 610 at 3 different times of the day (between 10:30pm and 6am UK time). As I have said, it only started happening this week and even during this week, there were other trades taken correctly just once on the same computer, on the same MT4 with the same EA. There were no such problems with exactly the same setup before build 600 or even with Build 600 until this week. Is my suspicion that this is more a problem on the broker's server side correct or not?
Thank you for any help.
The OrderSelect is performed every tick because the EA is supposed to open just 1 trade per magic number and it worked OK even later that same day, this is why I am so confused.
Thanks for the reply anyway.
To add comments, please log in or register