fxDreema

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

    How do I use Loop (pass "n" times") ?

    Questions & Answers
    3
    7
    2099
    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.
    • P
      padletut last edited by

      Shouldn't this example draw 100 Vertical lines on the init?

      Why is it not doing it?
      How can I make it do it?

      https://fxdreema.com/shared/5pciYh2Wc

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

        Because that block needs an execution order for any and each loop. Putting it on the 'On Init' tab means it will be given just one. If you want 100 lines you should put both blocks on the 'On tick' tab. Then a new line will be drawn on every arriving tick until the hundredth.

        (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
        • P
          padletut last edited by

          Strange, I though it was a loop?

          Because if I write this in a custom MQL code block:

          for(int i=0; i<=100; i++){
          ObjectCreate( "Time_vLine-"+Time[i], OBJ_VLINE, 0, Time[i], 0 );
          ObjectSet( "Time_vLine-"+Time[i], OBJPROP_COLOR,clrRed);
          }

          I get 100 vertical lines on the init....

          Why is not the "Loop pass "n" times" not doing the same?

          1 Reply Last reply Reply Quote 0
          • P
            padletut last edited by

            @FXDREEMA-0 ?

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

              I'm afraid hardcore coding is not my field, sorry. 😞

              (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
              • M
                miro1360 last edited by

                the name must be changed accordingly on each cycle to a specific name, your custom code changes it: "Time_vLine-"+Time[i]
                but the Draw line block is not
                find my examples and replies about loops and you can find the answer 🙂

                Between trading and gambling is a very small gap, be careful.

                P 1 Reply Last reply Reply Quote 0
                • P
                  padletut @miro1360 last edited by

                  @miro1360 ah, I see 🙂 I got it work, thank you 🙂 I'm going to study your loop examples too.
                  https://fxdreema.com/shared/ewgZNewxe

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

                  Online Users

                  A
                  J
                  D
                  E

                  34
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors