fxDreema

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

    for each position loop not ending

    Bug Reports
    3
    7
    709
    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.
    • H
      hunters5882 last edited by

      IN MT5 I use for each position and I set n=1 but ea work nested loop always not end loop and don't doing yellow spot in for each position function

      so if i don't add once per order it's will open pending sell nonstop

      in picture you can understand easier

      0_1639120478956_Capture.PNG

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

        @hunters5882 If you put a shared link on here then what each block is doing can be checked, I would create a sell/buy tree with a no position block at top, the pink blocks I would have in a separate tree. for the pink blocks to work a trade/order needs to be running.

        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
        • H
          hunters5882 last edited by hunters5882

          https://fxdreema.com/shared/R9gukbByc

          @jstap this i cut only main function

          and pending order i use for check loop error only, in real use it's end at modify variable

          thank you for any help

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

            @hunters5882 The trades are being placed by the blocks on the left.

            0_1639127087320_0b065980-8d74-45c9-b736-b4c6606dc607-image.png

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

              you cant have pink blocks below blue blocks if i remember right. just remove the if position on the right side and relocate your modify variable thatll be a good place to start

              1 Reply Last reply Reply Quote 0
              • TipsyWisdom
                TipsyWisdom last edited by

                i must admit though, i often have the same problem too when i try to use pink loop for each position. But I think the alternative is to do once per position, and then you can select "parent trade only" or something to that affect?

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

                  @tipsywisdom You can have blue blocks above pink, generally it is better not to but if being used as a switch you can.

                  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 1
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  C

                  19
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors