fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    EA that can stop/exit other EA?

    Questions & Answers
    4
    7
    1851
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      EAbaer last edited by

      Hello!

      I would like to create an EA with fxdreema that stops a other EA (only ex4, i have no mql-code) e.g. if the equity is below XY.

      How can i do this?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • bk7
        bk7 last edited by

        so you would need to go with a custom code:
        close a certain chart id (with the ea attached) if equity is below xy

        E 1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          I think that few people asked something like this before,, but I don't know if there are any functions to do that, I never tried to solve this problem. Or, maybe there was a way to load another EA, but for the termination I don't know.

          timmyhanke 1 Reply Last reply Reply Quote 0
          • E
            EAbaer @bk7 last edited by

            @beatking

            Thank you. How could i do this :)?

            1 Reply Last reply Reply Quote 0
            • timmyhanke
              timmyhanke @fxDreema last edited by

              @fxdreema

              can it somehow enable/disable autotrading ?
              if one ea does it , it will affect all 🙂

              1 Reply Last reply Reply Quote 0
              • timmyhanke
                timmyhanke last edited by

                To make the EA become SAD Face.
                You need this :

                #include <WinUser32.mqh>

                extern bool DisableAllEAs = TRUE;

                void DisableEA() {
                keybd_event(17, 0, 0, 0);
                keybd_event(69, 0, 0, 0);
                keybd_event(69, 0, 2, 0);
                keybd_event(17, 0, 2, 0);
                }

                int start() {

                if (DisableAllEAs == TRUE) {
                DisableEA();
                return (0);
                }
                .
                .
                .
                .

                }
                found this , dont know how to use it or if it actually will work

                1 Reply Last reply Reply Quote 0
                • fxDreema
                  fxDreema last edited by

                  Here is how the code of the "Delay" block works in the studio - http://prntscr.com/ig6otk This is the only block where I use .dll and the #import code can be seen at the bottom. Normally I don't want to write code that uses .dll file

                  1 Reply Last reply Reply Quote -1
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  A
                  J
                  D
                  E

                  25
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors