How to make an EA that is only working on demo account?
3 replies
Conmariin
6 years ago #232644
Hi 🙂
I know in mql4 it is made with isDemo but I don’t know how to integrate it with EAWizard, so the EA is only working on Demo Accounts.
Thanks for help! 🙂
Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de
tomas262
6 years ago #232646
Hello,
you can add this custom action in EA Wizard:
if (!IsDemo()) return false;
Do this on a tab that precedes any trade action like new order
Conmariin
6 years ago #232664
Oh, I see my post is in the wrong forum. It should be under EA Wizard -> Application Support. I’m sorry!
Hello tomas 🙂
When I do what you suggest the EA isn’t working anymore. Not on the Demo and not on the Real Account. Okay, that’s the safest way. 😉 But it should trade only on Demo Accounts.
By the way, do you have a how to, to secure an EA in real accounts like checking the real account number?
Thanks a lot! 🙂
Automatisches Handeln mit Expert Advisor
https://www.rabenesche.de
tomas262
6 years ago #232742
Hello,
“IsDemo” should work. Check with your broker for a reason why it does not. They could advice
As for EA security there are multiple things to consider. The ex4 can be easily decompiled currently. Any protection you put there will be easily defeated. Probably the best way is you can put the logic in a DLL (which is harder to decompile)
Viewing 3 replies - 1 through 3 (of 3 total)