fxDreema

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

    Counting candles

    Questions & Answers
    2
    11
    854
    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.
    • W
      William 1 last edited by

      Hello Dreemas

      I have a new project but i cant figure it out how to do with counting back candles.

      There are two crossing that need to make. First the Ma 20 need cross Ma 50 after that the Ma 20 need to cross the price. From the first to the second crossing there need 10 or less candle to buy. 0_1641326613917_5483ab73-033a-41a0-9533-e5132405d6f0-image.png

      The picture have 12 that means sell. can some one help me with this?
      0_1641326745533_2c393914-d976-4c88-bd1c-e820a6c785fe-image.png

      The candle ID are just fixed. It cant make < then 10 candle. Are there other ways or should i do it with conditions

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

        @william-1 You can do this with a loop, have a condition of your max candles and then a cross for the second, or just use 2 loops this will show you how to start:

        https://fxdreema.com/shared/AWfXOPheb

        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
        • W
          William 1 last edited by

          thank you very much

          1 Reply Last reply Reply Quote 0
          • W
            William 1 last edited by

            @jstap I dont understand. Could you explain this?

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

              @william-1 How do you mean? Use the link and generate a copy for yourself, put the variables in a comment block, then you can watch on back test to see what the loop is doing, from there you can see how to add whatever else you need to create your EA.

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

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

                @jstap Where can i adjust the candle between 20x100 and 20x price. < 10 candle between = buy and >10 is = sell

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

                  @william-1 There is 2 loops in there, the first will count candles when ma20 is above ma50, the second counts candles when ma20 is below ma50, when 1 is counting the other will be at 0. The two blocks underneath you put in your buy/sell tree, change settings to suit, you can change the minimum candles in the inputs. Once you have the first set of loops doing what you require, copy, add variables and change settings, when you have enough to do all you require you have the basis of your EA.

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

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

                    @jstap I tried. But it doesnt do anything. The input was 10< candle. When the ma 20 hit the candle it will count back right? if there is less then 10 candle between MA 20 X price and MA 20 xMA 100 - buy.

                    Is there another way to do this like with bundling two condition into one with variable. or does variable does other thing.

                    Like this
                    0_1641758166534_5b019747-49a4-42e5-8034-6663336f784f-image.png

                    But i keep having errors

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

                      @william-1 Put a shared link here of whar you;ve done and I'll have a look.

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

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

                        @jstap my project or your example project

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

                          @william-1 Your project.

                          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

                          T
                          B
                          A
                          P
                          A
                          A
                          X
                          K

                          19
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors