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

Forums>AlgoWizard / EA Wizard>General Discussion>EA switch on/off button in chart window

  • #202997 |
    Participant
    126 Posts

    Hello, it`s possible to add a button to can switch on and off the EA ?
    The global button “autotrading” in Menu MT4 is not good, because i use 4 EA`s in 4 markets.
    How can i add this ?

    Best regards for help

    #203040
    tomas262
    Administrator
    1826 Posts

    Hello,

    it would require some amount of coding, see this https://automatedtradingsoftware.co.uk/how-to-create-a-simple-toggle-button-in-mql4/?action=skip

    There is a simpler way though. You can setup a variable EAactive (int). Add this to your conditions to open orders as if (EAactive = 1) …..

    As EA is running on a chart you can modify this EA input and set it to = 0 so the EA will not open any new orders until you change it back to 1

    #232830
    Conmariin
    Customer
    116 Posts

    Solution without coding: Open 4 MT4 instances and put only one EA per MT4 instance. So you can use the MT4-build-in-button. That’s how I am using it and it works fine.

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

    #234062
    Participant
    1 Posts

    hello – would the variable solution work with a True/false boolean rather than integer?

    would you not need to reload the EA for the change to take effect?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.