fxDreema

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

    How to check distance between 2 running positions?

    Questions & Answers
    3
    6
    634
    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.
    • M
      maledetu last edited by

      Hey, im trying to check the pip distance between two running positions, if its >= than X ill close both.

      These 2 positions are the only ones running (using positions count before checking distance)

      How can i do it?

      Thanks

      jstap l'andorrà 2 Replies Last reply Reply Quote 0
      • jstap
        jstap @maledetu last edited by

        @maledetu formula block high-low will give you the distance as a price fraction, modify variables block to change to pips, variable in pips same variable in modify box, as is I believe, or as pips, one or the other will convert formula variable to pips.

        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
        • l'andorrà
          l'andorrà @maledetu last edited by

          @maledetu Do you mean distance from open price? Or the open price from each other?

          (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
            maledetu last edited by

            Hey guys thanks for the help.

            What i need is just the distance in pips from open price of each one.
            Goal is to check if there are only 2 open positions. If true and distance from them is more than X close both.

            Example:

            Position A is running and was opened at 1.1
            Position B is running and was opened at 1.3

            Difference in pips from both openings is 0.2

            Lets say i set to close positions that are 0.2 or more in distance if there are only 2 running.

            Both positions are closed.

            Still trying to figure it out.

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

              @maledetu You will need to record the price in a variable, you have a for each trade loop but, not sure if you can select first then second. in this link text you'll see how you can achieve, I haven't tested but should work.

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

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

                @jstap Thanks! ill test it and see how it goes, but anyway thanks for the help

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

                Online Users

                K
                T
                B
                D

                20
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors