amarsinghbishen:
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.
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 .
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.
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?
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 . . .
Thank you for the response RaptorUK .But I want to know how can this type of error may occur.Any guess?
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
I am also checking IsDemo in the init.So it should not be run
- If you had the EA attached and changed account to live the EA is now running live.
- How is "checking IsDemo in the init" stopping start() from running?
WHRoeder:
- 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.
can u post your EA ?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 .