fxDreema

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

    MACD High/low or MACD crosses 0

    Questions & Answers
    3
    16
    1366
    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 guys,
      I'd like to create EA where pending order will be opened based on MACD histogram highest or lowest or where MACD crosses 0.

      So, for example as screenshot below, open pending order where the last MACD highest (from lets say the last 100 candlesticks). OR another possibility is to open pending order where the last MACD crosses 0.

      Any helpful hints/tips highly appreciated! Thank you 🙂

      0_1636455223140_06131b3a-f761-4396-87db-47255491ed7b-image.png

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @drankman last edited by

        @andrewfrank The second condition searching dor 0 crossing is easy. You can do this:

        0_1636554107448_01.png

        Finding the 'highest/lowest' is more difficult. How is a high or low defined? Is it a local high, daily high or something else? Depending on that definition dfferent results can be obtained.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        D 1 Reply Last reply Reply Quote 0
        • D
          drankman @l'andorrà last edited by drankman

          @l-andorrà Thanks for the response.

          For the crossing 0, I was actually looking where the EA can look up the past candles and set the pending order where MACD crosses 0 from the last (lets say) 100 candlesticks.

          So basically as in the example above, the EA will always look the last 100 candlestick to find MACD crosses 0 to set the pending order.

          0_1636555266955_1f077970-1dc8-4522-990c-5e58738062eb-image.png

          The same situation with MACD highest and lowest.
          Lets say find where MACD highest from the last 100 candlesticks. and set the pending order..

          Hopefully I explained more clearly this time.
          Thanks!

          Btw, I have seen some Q&A regarding this. but not sure I understood correctly.
          such as: http://fxdreema.com/forum/topic/11074/how-can-i-found-cci-overbought-oversold-dynamic-high-low-value-by-candle-price-or-candle-id/16

          And here's my project, if you could have some time to look: https://fxdreema.com/shared/nbNyERE5e

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @drankman last edited by

            @andrewfrank Then you will need a loop searching for that info in the past. But what's the point of searching for a crossing 100 candles away? What if there are more in between?

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            D 1 Reply Last reply Reply Quote 0
            • D
              drankman @l'andorrà last edited by

              @l-andorrà Thanks again.

              the 100 candles are just the range. It should find the most current or the last one where it crosses the 0 level (or the highest).
              For example above, within 100 candles, set the pending order where the MACD crosses below 0 level, which is shown in magenta arrow.

              Could you give me example or redirect me how to use the loop as you mentioned?

              Thanks!

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

                @andrewfrank In HERE, is how to count the candles from macd going above or below.

                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 a lot!
                  Follow up question: If I want to find the last high from the certain range, lets say last 100 candle stick, should I adjust your setting to this one below

                  Your setting:
                  0_1636729236126_ab7a9e2e-8a16-4392-85d8-a03d1851e2c7-image.png

                  to this one:
                  0_1636729425586_d6affac9-8eb6-4934-b35c-2ed45d4d4246-image.png

                  Thanks!!

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

                    @andrewfrank This will put the highest price from range into a variable, can't use the same variable that is on the loop, every time the loop starts it will cause confliction with the variable value.

                    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!
                      Sorry, but I have to ask more questions:

                      1. Should I put different variables to find the MACD range as below?

                      0_1636748660852_6f90e486-c583-410f-9286-f70f14f5848a-image.png

                      1. And then I need your setting with different variable that is supposed or able or to find the MACD above?

                      0_1636748786124_6aee0ac1-d19a-40fc-a656-e2659f90f5a8-image.png

                      Here I set my project if you could look it up: https://fxdreema.com/shared/imdtPQcHc

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

                        @andrewfrank If you use that loop and put the variable in the end candle of market properties, you will get the candle value from that range. Normally use a different variable with a different calculation, otherwise conflicts will happen.

                        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 ah ok. Did you mean like this?

                          0_1636752205296_808d90f3-6710-47be-80e8-67fdcbefbb48-image.png

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

                            @andrewfrank I mean put the loop variable into the end candle ID cell, by using the candle id you are limiting result to 1 candle, if the candle low is the highest macd then it will work but very restrictive.

                            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
                              hmm.. If I put the loop variable into end candle ID as below screenshot,

                              1. how it can identify the range (I was referring to the last 100 candles for examples)?
                              2. Does it need another variable (see question mark in the screenshot)?

                              0_1636753244134_90e9ff5b-f127-4208-87e2-2cb2bf610547-image.png

                              Thanks for the help!

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

                                @andrewfrank You would need another variable, this will give you the highest value since the cross.

                                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 ah ok. Sorry I am still trying to figure it out.

                                  So basically if the loop will look the highest macd since the macd cross above 0, then

                                  I have to change from this:
                                  0_1636755668021_9a725a83-0a9b-4d7e-b98b-1b582d41a950-image.png

                                  To this?

                                  0_1636755592136_9ccc6631-3a77-4b3d-b8f6-3caa77080e34-image.png

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

                                    @andrewfrank The loop will give you the current candle count (range) macd is <> 0, checking for a value with market properties will give you the ID/value of a condition in this range.

                                    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
                                    • 1 / 1
                                    • First post
                                      Last post

                                    Online Users

                                    E

                                    11
                                    Online

                                    146.8k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors