fxDreema

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

    How to "code" EA with ranging candle id?

    Questions & Answers
    3
    17
    739
    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
      DeltaAurum last edited by

      Hi all, I have a strategy that consist of 5 indicators but I have issues "coding" 3 of them to work properly because sometimes it aligns with 1st and 2nd indicators on candle id 1 but most of the times it ranges as far as candle id 5. Any help with be appreciated. thank you

      image for example. the trade should take place on the crosshair.
      0_1676099843783_Screenshot 2023-02-11 at 3.12.01 PM.png

      l'andorrà jstap 2 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @DeltaAurum last edited by

        @deltaaurum Then what do you exactly need? All those indicators to be true within the same 5 candles period but separatedly at different moments, maybe?

        (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
        • jstap
          jstap @DeltaAurum last edited by

          @deltaaurum What I would do is count 1 on a variable every time the colour appears, rest this to 0 on other colour and count, check this number when all other conditions are met.

          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 1
          • D
            DeltaAurum @l'andorrà last edited by

            @l-andorrà how do I create it to be like how it is suppose to place the trade in the image?

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

              @jstap you mean I should put 1 for the 1st and 2nd indicator and 0 on the remaining 3?

              1 Reply Last reply Reply Quote 0
              • D
                DeltaAurum last edited by

                @l-andorrà @jstap this is another project and should also place trade at the crosshair with macd crossing earlier before the other 2 conditions are met. ema and psar can be on candle id 1 but how should i make it for macd because it can also range and cross earlier by a few candles 0_1676594605915_psar ema.png

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

                  @deltaaurum There are various ways but try this, when macd meets your condition set a variable to 0, once per bar add 1, when condition is opposite set another variable to 0 and count every bar. Set this up on a small project and visually back test, with the variables in a comment so you can see what happens. Once this is working add flags to start/stop the count.

                  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 1
                  • D
                    DeltaAurum @jstap last edited by

                    @jstap I dont understand what you mean as I am still new to fxdreema 😕 been using it for a few days only. could you help me out and make an example please? here's the link to my project (https://fxdreema.com/shared/JjiPEfrtc)

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

                      @deltaaurum Something like thisw: https://fxdreema.com/shared/PTOOQldU

                      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 1
                      • D
                        DeltaAurum @jstap last edited by DeltaAurum

                        @jstap ah I see but how would I do it for a Macd with 2 lines crossing? this is the indicator macd 2line

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

                          @deltaaurum That is the logic of how to do 1 condition, to do more conditions add other trees, and you can add more conditions to a tree to have more conditions working together.

                          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
                            DeltaAurum @jstap last edited by

                            @jstap where do I add the amount of candle id for this?

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

                              @deltaaurum In condition ], more settings, you can select ID, this though is limited to a single candle.

                              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
                                DeltaAurum @jstap last edited by

                                @jstap but it won't work for ranging candle id right?

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

                                  @deltaaurum You need to add more logic, so when a condition happens, you record the time in a variable, you can delete or refresh when this happens again, this way you always know where the candle is.

                                  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
                                  • D
                                    DeltaAurum last edited by DeltaAurum

                                    @jstap how would I set 3rd,4th, and 5th condition/indicator to work on a ranging candle id since the conditions are met when at a certain candle id? like this project for example https://fxdreema.com/shared/OeCqwHpBc

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

                                      @DeltaAurum Not too sure what you mean, generally in separate trees you need to save the candle when something happens.

                                      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

                                      5
                                      M
                                      M
                                      M
                                      T
                                      C
                                      E
                                      R

                                      17
                                      Online

                                      146.8k
                                      Users

                                      22.4k
                                      Topics

                                      122.6k
                                      Posts

                                      Powered by NodeBB Forums | Contributors