fxDreema

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

    MACD on/off and MACD signal crosses 0 and crosses signal line

    Questions & Answers
    2
    9
    565
    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.
    • D
      drankman last edited by

      hello,
      I have 2 questions regarding MACD.

      1. I have two MACDs in EA. I would like to put one MACD as on/off function. How do I set the bool constant and where in MACD indicator should I put it?
      2. I would like to create MACD drop downlist functions with one macd line below/above 0 and the other one macd crosses signal line. What constant should be and where I can put in the macd indicator functions?
        Thanks for the helps!
      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @drankman last edited by

        @andrewfrank This is how to do 1.

        0_1634218085921_7d9d18a6-dd22-46eb-8abf-d0022fc61aec-image.png

        Do you mind explaining what you want for 2?

        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! 😊

        D 1 Reply Last reply Reply Quote 0
        • D
          drankman @jstap last edited by

          @jstap Thanks for this, I'll try to figure out.
          For number 2:

          I want to be able to choose from MACD indicator, either using MACD line cross 0 or MACD line cross signal lines.
          Something similar like this:

          0_1634219508006_e863f2af-cd50-4b48-9cf3-4b8ae4695a94-image.png

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @drankman last edited by

            @andrewfrank If you want this selected in inputs you can do something like this.

            0_1634220611205_38ce788a-f570-4b7c-a6f7-c53d20071af5-image.png

            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! 😊

            D 1 Reply Last reply Reply Quote 0
            • D
              drankman @jstap last edited by drankman

              @jstap Thanks for this!

              further question:

              I created the constants,

              0_1634293426090_970af21d-1ebb-45f7-aa19-a6904d1f518d-image.png

              Do the MACD A, MACD B, MACD All with if conditions?
              How do you use it?

              is something like this?
              0_1634297557910_fca2bcef-6ae1-4cec-9ac2-b35d719f3732-image.png

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @drankman last edited by jstap

                @andrewfrank All you pictures are correct, the MACD constants go into the orange condition block as in my picture, the logic of these blocks is if variable/constant = true pass, otherwise don't activate next block.

                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! 😊

                D 1 Reply Last reply Reply Quote 0
                • D
                  drankman @jstap last edited by

                  @jstap Thanks!
                  I have now implemented those above.
                  But somehow EA is not working properly, it doesnt open any trades as I am backtesting it.
                  Any chance you could look it up and see where the basic problems are?

                  fxdreema.com/shared/18uQKDK0e

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @drankman last edited by

                    @andrewfrank Some constants are in as bool, they need to be string, I would set all as standard, test if all works, insert constants one at a time until all working.

                    0_1634302407932_2f7aae36-056f-451b-822f-83719dcb62dd-image.png

                    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! 😊

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      drankman @jstap last edited by

                      @jstap Ok thanks!
                      Ill try to do it as your suggestions. and see how it works. 🙂

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

                      Online Users

                      M
                      C
                      A
                      A
                      H
                      E

                      8
                      Online

                      146.8k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors