Alert: MT4 Terminal Duplicating Orders Sent by Experts - page 3

 
Ricardo1:

Hello Raptor, I have given you the whole experts log for that day. The next expert action occurs on June 12 at 9:05 so I don't think it would be useful. I'll be glad to give you any evidence I can. This also happened on a demo account on May 29 but I don't have the experts log anymore. There's even another demo case in which I could search for the exact moment where it happened, although the scenario would be much the same... Ok I've got them. I've got the files from the demo account on May 27, using a commercial EA. If you consider it useful, I will post them here.
If you could post them here it might shed some light on what is happening,  thank you.
 

Ok, very good. These are the exact files, without any modification. They are long, but it is not necessary to pay attention to all the details.

The main point: The expert ForexGrowthBot opens ticket 22492519 at 19:14:57. Immediately after that, order 22492528 is opened by no one (it appears only in the journal). When the EA notices this, it freaks out :) and closes the order. There was no manual intervention in this case.

The other EA present is a copier: it doesn't send or close any orders. I used it to copy the orders to another account in order to be able to change the lot size, because ForexGrowthBot has a fixed lot size (I had tried to use a copier that opened orders inside the same account, but it apperared that ForexGrowthBot was getting confused with additional orders sent by another agent, so I used one that copies across accounts).

Here are the files:


XE Markets

Experts log for 2013.05.27

19:14:57 ForexGrowthBot EURUSD,M15: open #22492519 sell 0.01 EURUSD at 1.29044 ok
19:14:57 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:14:58 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:14:58 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:14:58 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:15:34 ForexGrowthBot EURUSD,M15: close #22492528 sell 0.01 EURUSD at 1.29043 at price 1.29056
19:15:34 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:15:34 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:29:55 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:29:55 ForexGrowthBot EURUSD,M15: open #22494722 sell 0.01 EURUSD at 1.28994 ok
19:29:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:44:57 ForexGrowthBot EURUSD,M15: open #22495858 sell 0.01 EURUSD at 1.28930 ok
19:44:57 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:44:57 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:59:59 ForexGrowthBot EURUSD,M15: open #22496734 sell 0.01 EURUSD at 1.28965 ok
19:59:59 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:59:59 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
20:14:56 ForexGrowthBot EURUSD,M15: open #22498142 sell 0.01 EURUSD at 1.28906 ok
20:14:56 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
20:14:56 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
20:44:55 ForexGrowthBot EURUSD,M15: close #22498142 sell 0.01 EURUSD at 1.28906 at price 1.29048
20:44:55 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
20:44:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:29:55 ForexGrowthBot EURUSD,M15: close #22496734 sell 0.01 EURUSD at 1.28965 at price 1.29202
22:29:55 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
22:29:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:30:01 ForexGrowthBot EURUSD,M15: close #22495858 sell 0.01 EURUSD at 1.28930 at price 1.29206
22:30:01 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
22:30:01 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:30:01 ForexGrowthBot EURUSD,M15: close #22494722 sell 0.01 EURUSD at 1.28994 at price 1.29215
22:30:02 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
22:30:02 ForexGrowthBot EURUSD,M15: close #22492519 sell 0.01 EURUSD at 1.29044 at price 1.29215
22:30:02 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed


Journal log for 2013.05.27

19:14:56 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
19:14:57 '7253468': request was accepted by server
19:14:57 '7253468': request in process
19:14:57 '7253468': order was opened : #22492519 sell 0.01 EURUSD at 1.29044 sl: 0.00000 tp: 0.00000
19:14:57 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
19:14:57 '7253468': request was accepted by server
19:14:57 '7253468': request in process
19:14:57 '7253468': order was opened : #22492528 sell 0.01 EURUSD at 1.29043 sl: 0.00000 tp: 0.00000
19:15:32 '7253468': close order #22492528 sell 0.01 EURUSD at 1.29043 sl: 0.00000 tp: 0.00000 at price 0.00000
19:15:34 '7253468': request was accepted by server
19:15:34 '7253468': request in process
19:15:34 '7253468': order #22492528 sell 0.01 EURUSD at 1.29043 sl: 0.00000 tp: 0.00000 closed at price 1.29056
19:15:34 '7253468': login
19:29:54 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
19:29:55 '7253468': request was accepted by server
19:29:55 '7253468': request in process
19:29:55 '7253468': order was opened : #22494722 sell 0.01 EURUSD at 1.28994 sl: 0.00000 tp: 0.00000
19:44:57 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
19:44:57 '7253468': request was accepted by server
19:44:57 '7253468': request in process
19:44:57 '7253468': order was opened : #22495858 sell 0.01 EURUSD at 1.28930 sl: 0.00000 tp: 0.00000
19:59:55 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
19:59:59 '7253468': request was accepted by server
19:59:59 '7253468': request in process
19:59:59 '7253468': order was opened : #22496734 sell 0.01 EURUSD at 1.28965 sl: 0.00000 tp: 0.00000
20:14:56 '7253468': order sell market 0.01 EURUSD sl: 0.00000 tp: 0.00000
20:14:56 '7253468': request was accepted by server
20:14:56 '7253468': request in process
20:14:56 '7253468': order was opened : #22498142 sell 0.01 EURUSD at 1.28906 sl: 0.00000 tp: 0.00000
20:44:55 '7253468': close order #22498142 sell 0.01 EURUSD at 1.28906 sl: 0.00000 tp: 0.00000 at price 0.00000
20:44:55 '7253468': request was accepted by server
20:44:55 '7253468': request in process
20:44:55 '7253468': order #22498142 sell 0.01 EURUSD at 1.28906 sl: 0.00000 tp: 0.00000 closed at price 1.29048
22:29:55 '7253468': close order #22496734 sell 0.01 EURUSD at 1.28965 sl: 0.00000 tp: 0.00000 at price 0.00000
22:29:55 '7253468': request was accepted by server
22:29:55 '7253468': request in process
22:29:55 '7253468': order #22496734 sell 0.01 EURUSD at 1.28965 sl: 0.00000 tp: 0.00000 closed at price 1.29202
22:29:55 '7253468': close order #0 buy 0.01  at 0 sl: 0 tp: 0 at price 0
22:29:55 '7253468': order #22495858 buy 0.01 EURUSD closing at 0.00000 failed [Invalid parameters]
22:30:00 '7253468': close order #22495858 sell 0.01 EURUSD at 1.28930 sl: 0.00000 tp: 0.00000 at price 0.00000
22:30:01 '7253468': request was accepted by server
22:30:01 '7253468': request in process
22:30:01 '7253468': order #22495858 sell 0.01 EURUSD at 1.28930 sl: 0.00000 tp: 0.00000 closed at price 1.29206
22:30:01 '7253468': close order #22494722 sell 0.01 EURUSD at 1.28994 sl: 0.00000 tp: 0.00000 at price 0.00000
22:30:01 '7253468': request was accepted by server
22:30:01 '7253468': request in process
22:30:01 '7253468': order #22494722 sell 0.01 EURUSD at 1.28994 sl: 0.00000 tp: 0.00000 closed at price 1.29215
22:30:01 '7253468': close order #22492519 sell 0.01 EURUSD at 1.29044 sl: 0.00000 tp: 0.00000 at price 0.00000
22:30:02 '7253468': request was accepted by server
22:30:02 '7253468': request in process
22:30:02 '7253468': order #22492519 sell 0.01 EURUSD at 1.29044 sl: 0.00000 tp: 0.00000 closed at price 1.29215
23:33:46 '7253468': login
23:34:47 '7253468': login
23:34:54 '7253468': login
23:35:38 '7253468': login
23:35:39 '7253468': previous successful authorization performed from 201.124.93.195

 
Seems like one to one to me
19:15:34 ForexGrowthBot EURUSD,M15: close #22492528 sell 0.01 EURUSD at 1.29043 at price 1.29056 19:15:34 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:29:55 ForexGrowthBot EURUSD,M15: open #22494722 sell 0.01 EURUSD at 1.28994 ok 19:29:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
19:44:57 ForexGrowthBot EURUSD,M15: open #22495858 sell 0.01 EURUSD at 1.28930 ok 19:44:57 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
19:59:59 ForexGrowthBot EURUSD,M15: open #22496734 sell 0.01 EURUSD at 1.28965 ok 19:59:59 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
20:14:56 ForexGrowthBot EURUSD,M15: open #22498142 sell 0.01 EURUSD at 1.28906 ok 20:14:56 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
20:44:55 ForexGrowthBot EURUSD,M15: close #22498142 sell 0.01 EURUSD at 1.28906 at price 1.29048 20:44:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:29:55 ForexGrowthBot EURUSD,M15: close #22496734 sell 0.01 EURUSD at 1.28965 at price 1.29202 22:29:55 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:30:01 ForexGrowthBot EURUSD,M15: close #22495858 sell 0.01 EURUSD at 1.28930 at price 1.29206 22:30:01 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
22:30:01 ForexGrowthBot EURUSD,M15: close #22494722 sell 0.01 EURUSD at 1.28994 at price 1.29215 22:30:02 EA Copier Write Side 2.11 EURUSD,M15: Ready to Execute FileCopier
22:30:02 ForexGrowthBot EURUSD,M15: close #22492519 sell 0.01 EURUSD at 1.29044 at price 1.29215 22:30:02 EA Copier Write Side 2.11 EURUSD,M15: FileCopier Executed
 
WHRoeder:
Seems like one to one to me

Yes, EA Copier copies the orders to another account, but this has nothing to do with the issue.
 
Ricardo1:

Ok, very good. These are the exact files, without any modification. They are long, but it is not necessary to pay attention to all the details.


OK,  thank you for posting the log excerpts,  I can't see anything obvious,  it would be helpful if you could report this to the Service Desk,  you have to do this via the mql5 forum,  you will need to register if you haven't already.  Then login, go to your Profile and on the left you will see a Service Desk link,  raise a ticket,  give as much info as you can,  provide a link to this thread too.

If they get back to you with an explanation or solution please feed it back here.  Thank you.   

 
Ricardo1: Yes, EA Copier copies the orders to another account, but this has nothing to do with the issue.

Your "issue" was the mt4 terminal duplicating Orders. That log shows no duplications. It has everything to do with the issue.

So there are only two possibilities. 1) The EA is sending duplicates or 2) you have/had two terminals running at the same time.. In either case, there is nothing wrong with mt4.

 
WHRoeder:

Your "issue" was the mt4 terminal duplicating Orders. That log shows no duplications. It has everything to do with the issue.

So there are only two possibilities. 1) The EA is sending duplicates or 2) you have/had two terminals running at the same time.. In either case, there is nothing wrong with mt4.


I'm not here to argue with anyone. The proof is clear for anyone who just reads the short explanation and the two logs.
 
RaptorUK:


OK,  thank you for posting the log excerpts,  I can't see anything obvious,  it would be helpful if you could report this to the Service Desk,  you have to do this via the mql5 forum,  you will need to register if you haven't already.  Then login, go to your Profile and on the left you will see a Service Desk link,  raise a ticket,  give as much info as you can,  provide a link to this thread too.

If they get back to you with an explanation or solution please feed it back here.  Thank you.   


Thank you very much. I'll do that. Of course any other info I get will be posted here. Have a nice weekend :)
 
I've had this happen maybe 3 times over the last 2 months. I send 48 pending orders via a script once a day. I can just quickly see the pattern the list of pending orders make and see when one is missing or extra. The script I use is very simple with no looping or other logic in it. Basically just a list of orders. I put time between each one. I was cutting the time down, but with that glitch, I've been increasing the time. I'm thinking it just might be a matter of timing for me. It does happen with no real error in code.
 
Baliguy:
I've had this happen maybe 3 times over the last 2 months. I send 48 pending orders via a script once a day. I can just quickly see the pattern the list of pending orders make and see when one is missing or extra. The script I use is very simple with no looping or other logic in it. Basically just a list of orders. I put time between each one. I was cutting the time down, but with that glitch, I've been increasing the time. I'm thinking it just might be a matter of timing for me. It does happen with no real error in code.

Are you checking your return values and reporting errors ?

What are Function return values ? How do I use them ?

Reason: