Can Someone tell me how to put protection in my EA ??
I'm having problems, to make this code work. I just want my EA to work on demo accounts, for testing purposes. Then I want to make it only work on specific accounts, example "account = 22031989" I saw this in the manual, but I do not know how it works.
Thank you :D // + ----------------------------------------------- ------------------- + ENUM_ACCOUNT_TRADE_MODE tradeMode = (ENUM_ACCOUNT_TRADE_MODE) AccountInfoInteger (ACCOUNT_TRADE_MODE); if (tradeMode == ACCOUNT_TRADE_MODE_DEMO) return (true); // tradeMode is ACCOUNT_TRADE_MODE_CONTEST or ACCOUNT_TRADE_MODE_REAL return (false);
thank you for your help Oswald.
but you wrote "....... code here " what does it means?
I'm having problems, to make this code work. I just want my EA to work on demo accounts, for testing purposes. Then I want to make it only work on specific accounts, example "account = 22031989" I saw this in the manual, but I do not know how it works.
Thank you :D // + ----------------------------------------------- ------------------- + ENUM_ACCOUNT_TRADE_MODE tradeMode = (ENUM_ACCOUNT_TRADE_MODE) AccountInfoInteger (ACCOUNT_TRADE_MODE); if (tradeMode == ACCOUNT_TRADE_MODE_DEMO) return (true); // tradeMode is ACCOUNT_TRADE_MODE_CONTEST or ACCOUNT_TRADE_MODE_REAL return (false);