fxDreema

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

    Help with reducing variable to 1 and stopping loop

    Questions & Answers
    2
    13
    1470
    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.
    • X
      Xander last edited by

      Hi All

      Busy with this project shared/Zq5NSUzmb and cannot get the loop to work. There are essentially 3 variables that reduce by 1 each loop. When one of them equals 1 the project this should trigger the loop to stop but doing something wrong. Would really appreciate some help. The snippet below shows the problem blocks

      0_1599908436381_fbae8f53-58b6-4c1f-a3f3-280e9569e903-image.png

      1 Reply Last reply Reply Quote 0
      • X
        Xander last edited by

        0_1599910612068_e512b932-38a6-42d5-bd9e-81504ceb8bd8-image.png

        Found this one but still not working

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

          @xander Can you please share the latest version of the project?

          (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.

          1 Reply Last reply Reply Quote 0
          • X
            Xander last edited by

            Sure and sorry for forgetting the link shared/dVmcx8jTb

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

              @xander Don't get me wrong but I see a bit messy project. Could you please reorder the tres according to their supposed order of execution? I also see some single blocks that I assume you know they are not executed.

              (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.

              1 Reply Last reply Reply Quote 0
              • X
                Xander last edited by

                Ok I wiped the other rules to try and clean this up. shared/psbUifl0b

                Essentially the rules now are start 24 candles back, look for a 3 candle swing high, draw a line at the high. Regardless of whether there is a high reduce the old candle ID by 1 and repeat until it equals 1. (you can ignore the buy and sells was just using those to test where it stops working because the line is only drawn once).

                Basically two problems:

                1. The line for the high does not draw each time and
                2. Run through all rules and reduce by 1 until it equals 1

                0_1600163912449_bf79ee5b-b9ad-45ed-b70e-2917d6885abc-image.png

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

                  @xander Can you please share the link for the latest version?

                  (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.

                  1 Reply Last reply Reply Quote 0
                  • X
                    Xander last edited by

                    shared/qRJDXnzT

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

                      @xander said in Help with reducing variable to 1 and stopping loop:

                      shared/qRJDXnzT

                      Ok. That's much better. Here is what I see in my first look at it:

                      1. That 'pass' block ID60 is redundant. You can remove it.
                      2. What is the logic behind of your sell connected immediately after the 'buy now' block AND, at the same time, to all yellow outputs of those conditions necessary to open a buy? You are asking a sell to be open immediately after a buy is true!

                      (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.

                      1 Reply Last reply Reply Quote 0
                      • X
                        Xander last edited by

                        Yeah don't worry about the buy and sell just trying to test where the system triggers and when. The ruleset is a massively simplified version of teh actual project. My concern is that the loop does not draw a line at each high for each loop, instead only one is drawn. Dont really care about the conditions just want the loop to run at 24 for example, reduce to 23 and repeat all conditions until the variable =1

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

                          @xander The problem is block 62. You are definning the initial values for all those variables and then you want to catch and compare high values from the three previous candles. Why are you initialitizing those variables with those values every new bar?

                          (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.

                          1 Reply Last reply Reply Quote 0
                          • X
                            Xander last edited by

                            I don't think thats the problem, I run this on a 1h chart, so block 70 and 71 should only allow it to happen once a day, when I reset these to a certain value. The loop should then test for highs, reduce the variables by one and if they are still greater than one run block 63, which should not reset the variables? In effect if you set variable 1 to 24 it should repeat 23 times until the variable equals 1 and then stop.

                            shared/QXlN3HIPc

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

                              @xander In that case I'm agraid I cannot offer any additional suggestion. I simply don't undertand this project. Honestly I have no idea how the 'run block' block works so maybe that is my problem. I gess you are looking for a loop to find those hughs and lows. I strongly recommend you ask for roar's help. He's ours loops expert! 🙂

                              (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.

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

                              Online Users

                              R
                              A
                              E

                              11
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors