fxDreema

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

    check distance between pending orders and market price

    Questions & Answers
    2
    6
    263
    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.
    • S
      sami91 last edited by

      @ROAR

      Hello
      I want to write a program that will add a certain number of pending orders every time the current price moves by a certain amount (for example, 100 pips or by a certain range, for example, 90 to 110 pips), compared to the last and closest pending order. to do once in the condition).
      And the bet is stopped until the last pending order takes the same distance from the current price.

      I used these blocks but failed to do it
      Can you guide me in detail?

      (only check the condition once and again)Screenshot_20240504_175952_Gallery.jpg

      https://fxdreema.com/shared/BjSz1mhue

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

        Bucket of pending orders will get the total combined value, use pink pips away, use oldest to newest or newest to oldest, depending on which value is relevant

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

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

          @jstap

          I used the slide order block to move the pending orders relative to the current price, but when the current price reaches the pending order price, it is not converted into a position and disappears from the orders!
          Please guide me if possible

          https://fxdreema.com/shared/6pdSa0ezd

          slide order-but not convert to position!.PNG

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

            The only time I have seen a pending order delete instead of becoming a trade is if the lot size is too large. Check your journal tab and see if you have the reason

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

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

              @jstap

              After the highlighted row, the sales order has been deleted
              And I can't understand why
              journal.PNG

              I tested this in the trail pending scenario and the same thing happened and instead of converting to a position, the order was deleted

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

                Neither can I, I would expect you do have a order deleted line

                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
                P
                C
                S
                T
                I
                B
                A

                19
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors