fxDreema

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

    Loop Break

    Questions & Answers
    4
    4
    743
    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.
    • V
      Voodoogodman last edited by

      I can't seem to find any method to break out of a loop early before it finishes iterating.

      ie: "loop (pass "n" times)"

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

        Decreasing the 'n' number, 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.

        1 Reply Last reply Reply Quote 0
        • E
          ehsanarab last edited by

          i made a loop for a certain condition, once the condition met the loop must be terminated. the bot should run the loop for each new candle but unfortunately it stop after the first run. anybody could help on this situation?
          https://fxdreema.com/shared/nmtMOajHd

          R 1 Reply Last reply Reply Quote 0
          • R
            RGoo @ehsanarab last edited by

            @ehsanarab
            This block means a different loop, see picture (framed in red), try it like this, but I haven't tested the code because I only use MQL5. Since you are using CID_X for counting, you can use it to force a stop if stop means a new start, otherwise you first have to think about how you want to restart after a stop.
            Another note: You must never use the same name for a constant and a variable (loop_counter)!!!

            12205855-6d8b-4f26-8113-8633003f7ba1-image.png

            https://fxdreema.com/shared/yupIHbEA

            RGoo

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

            Online Users

            K
            M
            T
            E
            A
            P
            V
            R
            M
            G

            19
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors