order opened in live account
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.
Thank you for the response RaptorUK .But I want to know how can this type of error may occur.Any guess?
Thank you for the response RaptorUK .But I want to know how can this type of error may occur.Any guess?
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?
- 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 ?
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.

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 .