fxDreema

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

    Close position please help!

    Questions & Answers
    3
    7
    298
    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.
    • chattahooche
      chattahooche last edited by

      I am using the 'Close position' feature like this: When the account balance exceeds $20, it automatically closes all buy and sell transactions. However, I don't want this. For example, I have three sell positions and three buy positions. I want it to close the sell positions when the total of the sell positions exceeds $20, or similarly, close the buy positions when the total of the buy positions exceeds $20. How can I do this? Thank you in advance for your helpEkran Resmi 2023-05-02 21.47.41.png

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

        Use bucket of trades to get the value of each type, in separate trees check value and close the one type.

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

          Could you please send here a sample?

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

            Like this: https://fxdreema.com/shared/PTVo0lHZd

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

            chattahooche 1 Reply Last reply Reply Quote 0
            • B
              biztet last edited by

              Can also use Check profit (unrealized) block, set for Buys/Sells.

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

                @jstap thank a lot. I need to add all of them to the expert advisor, including the pass part, right? I also wrote the amount of $ 20 under the profit trade section, will it be like this?Ekran Resmi 2023-05-03 11.42.34.png

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

                  If you look in your input (on platform, is the constant), you can chance this number, if added to adjust this will be added to the constant, so wants to be empty. As for the pass I would add if it was me, might not be needed but you will have to test to find out.

                  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

                  C
                  M
                  M
                  F
                  L
                  F
                  F
                  E
                  K
                  M
                  T
                  A

                  29
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors