Duplicate Orders

Back to topics list To post a new topic, please log in or register
avatar
112
peterhw1 2016.08.16 12:59
 

Have my own EA which I have running on the Major charts including the USDJPY.  

My EA creates a log file which writes loads of data but I can't fathom out why every time a USDJPY order is initiated I appear to get 2 orders generated (with same S/L & T/P and consecutive TICKET numbers).

The scenario does not happen on any of the other charts (It is the same EA on all charts).

 

The experts TAB shows context free and new order TWICE

My EA code checks the Context is Free and writes to my log "Trade Allowed" - but I only get one log entry.

 Really weird just wondering whether anyone has anything similar happen which may help figure out how to resolve the problem 

avatar
13009
WHRoeder 2016.08.16 17:28 #
 
There are no mind readers here, we can't see your broken code.
avatar
112
peterhw1 2016.08.16 18:00 #
 
WHRoeder:
There are no mind readers here, we can't see your broken code.
Apologies just asking a question if anyone seen something similar that may help me locate.  At the moment the code is extensive and I am trying to narrow the area down if I can
avatar
108
eddie 2016.08.17 02:24 #
 

Looks like you also run the EA on USDJPY on another MT4 installation with the same account number.

Maybe your development environment?


avatar
112
peterhw1 2016.08.17 13:47 #
 
eddie:

Looks like you also run the EA on USDJPY on another MT4 installation with the same account number.

Maybe your development environment?


Thanks for the suggestion - yes solved the problem.  

Missed the obvious and looking for something much more difficult

Back to topics list  

To add comments, please log in or register