Download MetaTrader 5

order opened in live account

To add comments, please log in or register
Log in to MQL5.community using OpenID. It is convenient!
amarsinghbishen
69
amarsinghbishen 2013.11.30 06:05 

I am creating an ea on demo account of mt4.But After attching ea I did login in the live account it executes the ea .On order has been opened through the ea while I have disable the expert advisor when account has been changed.This message is also shows in expert tab.

I am also checking IsDemo in the init.So it should not be run .Can anyone help ? Thanks in advance .

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.11.30 09:06  
amarsinghbishen:

I am creating an ea on demo account of mt4.But After attching ea I did login in the live account it executes the ea .On order has been opened through the ea while I have disable the expert advisor when account has been changed.This message is also shows in expert tab.

I am also checking IsDemo in the init.So it should not be run .Can anyone help ? Thanks in advance .

Why would take any such risk ? why not have one terminal installed in C:\MT4Installs\Broker_Name\Live\ and one in C:\MT4Installs\Broker_Name\Demo\ then you can keep running the Demo while the Live is running and you have no such issues, even if your code is buggy.
amarsinghbishen
69
amarsinghbishen 2013.11.30 09:22  
RaptorUK:
Why would take any such risk ? why not have one terminal installed in C:\MT4Installs\Broker_Name\Live\ and one in C:\MT4Installs\Broker_Name\Demo\ then you can keep running the Demo while the Live is running and you have no such issues, even if your code is buggy.


Thank you for the response RaptorUK .But I want to know how can this type of error may occur.Any guess?
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.11.30 09:31  
amarsinghbishen:

Thank you for the response RaptorUK .But I want to know how can this type of error may occur.Any guess?
Yes, buggy code, which you haven't posted so it's just a guess. Or the order was already open when you logged back into the live account . . . you haven't shown any evidence for what you said happened so it's just a guess . . .
amarsinghbishen
69
amarsinghbishen 2013.11.30 09:55  
Thanks again RaptorUK .I am attching the snapshot the expert tab of live account which shows the experts are disable and then place a buy order in live account.
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.11.30 12:16  
amarsinghbishen:
Thanks again RaptorUK .I am attching the snapshot the expert tab of live account which shows the experts are disable and then place a buy order in live account.

If you are attaching an image . . .

whroeder1
14532
whroeder1 2013.11.30 12:51  
amarsinghbishen: ea on demo account of mt4.But After attching ea I did login in the live account it executes the ea .
I am also checking IsDemo in the init.So it should not be run
  1. If you had the EA attached and changed account to live the EA is now running live.
  2. How is "checking IsDemo in the init" stopping start() from running?
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.11.30 17:00  
WHRoeder:
  1. If you had the EA attached and changed account to live the EA is now running live.

Shouldn't this stop the EA when the account is changed ?

amarsinghbishen:

I am creating an ea on demo account of mt4.But After attching ea I did login in the live account it executes the ea .On order has been opened through the ea while I have disable the expert advisor when account has been changed.

amarsinghbishen
69
amarsinghbishen 2013.12.02 04:44  

Messages in experts tab

I am attaching the snapshot of experts tab ..RaptorUK .Here shows that the experts are disabled the account has been changed and

then shows that an buy order placed in the same account..Please check it and guide me accordingly if possible.

siqalexcg
7
siqalexcg 2013.12.07 14:57  
can u post your EA ?
To add comments, please log in or register