Not logged in
Viewing 4 posts - 1 through 4 (of 4 total)

Forums>StrategyQuant>Application Support>How to make an EA that is only working on demo account?

  • #232644 |
    Conmariin
    Customer
    116 Posts

    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

    #232646
    tomas262
    Administrator
    1826 Posts

    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

    #232664
    Conmariin
    Customer
    116 Posts

    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! :)

    Attachments:
    You must be logged in to view attached files.

    Automatisches Handeln mit Expert Advisor
    https://www.rabenesche.de

    #232742
    tomas262
    Administrator
    1826 Posts

    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 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.