Download MetaTrader 5
To add comments, please log in or register
Articles can help you to solidify your knowledge. Come and read them!
Peter Williams
342
Peter Williams 2016.08.16 10: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 

whroeder1
13613
whroeder1 2016.08.16 15:28  
There are no mind readers here, we can't see your broken code.
Peter Williams
342
Peter Williams 2016.08.16 16: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
peter.MT4Web
158
peter.MT4Web 2016.08.17 00:24  

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

Maybe your development environment?

Peter Williams
342
Peter Williams 2016.08.17 11: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

/
To add comments, please log in or register