fxDreema

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

    Coding an EA to start using another EA

    Questions & Answers
    2
    3
    164
    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
      e.so last edited by

      Hi there

      I'm trying to control the opening / closing of trades made by an EA by using a "master EA", depending on the close of a candle.

      Ex.

      1. First EA running on a EU chart => opening & closing trades
      2. Second EA running on another EU chart:
        - If D1 candle closes above price xxx then (1) close all EU trades and (2) turn EA off
        - Then when D1 candle closes back below price xxx, turn EA back on.

      The first step seems partially OK to me: I think I can work on an EA that will close all EU trades based on one condition, but I don't know how to turn EA off.

      The second step, resuming EA activity, is trickier in my view and I do not even know if that is possible, and I'd love to have your suggestions.

      A dirty way to do that would be, instead of "turning off EA" and then "resuming EA activity", to kill all trades that open after the D1 candle closes above the level.
      this would make the job, but spread costs would be significant...

      thanks for your help!

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @e.so last edited by

        @e-so Don't think you can stop and restart a EA without doing it manually, you can control another EA's trades with magic number, or by selecting all manually opened and automatic

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • E
          e.so last edited by

          yeah I thought so, does not matter
          thanks anyway for your help

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

          Online Users

          M
          N

          12
          Online

          147.0k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors