fxDreema

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

    How to close all trades when running equity is grater than starting equity by $1

    Questions & Answers
    4
    22
    1270
    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.
    • T
      tobeyfxx last edited by

      Screenshot 2024-12-19 005146.png

      I need a command that closes all trades when the running equity is grater than the starting equity by $1

      1 Reply Last reply Reply Quote 0
      • T
        tobeyfxx last edited by

        above image is me try but without progress

        1 Reply Last reply Reply Quote 0
        • T
          tobeyfxx last edited by

          can i please get help

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

            That depends on you definition of 'starting equity'. Do you mean the one at the beginning of the day? At the current open price? When exactly?

            (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
            • T
              tobeyfxx last edited by

              current open price.
              example if i open a trades at equity $90
              equity gets to $91, close all open trades

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

                Check the profit, use check profit (unrealised) - close trades

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

                  Thanks but that's not really what I'm talking about.
                  in some cases like grid trading, the total profits can be negative while there was an increase in equity from the current equity/starting equity.
                  i just want a rule that when the current equity or starting equity increases buy a certain percentage or amount ($1) all open trades should be closed

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

                    Equity is starting balance (equity) + running profit

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

                      i understand that.
                      i need a rule that when the current equity or starting equity increases buy a certain percentage or amount ($1) all open trades should be closed

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

                        But this is what running profit is doing, do you mean a set group of trades profit?

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

                          Here's the full scope
                          I'm trying to create an MT5 bot this is the sequence.
                          Opens 2 buy and one sell position. Once sell position is in profit or hits TP it's closes and 2 more buys and one sell is added immediately. That loop continues and when the equity is greater than the starting equity (that's the starting equity before or at the beginning of that initial 2 buys and one sell) by $1 then everything closes.

                          I've done everything on fxdreema an it works except the part where everything closes at $1 equity increase.

                          this is the link below to a test project for that part
                          https://fxdreema.com/shared/HFIEyVNqb

                          i created a variable that stores the starting equity and now, i dont know how to use a condition block to point to the variable

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

                            What is saving the starting equity? Blocks under a no trade block will not work once a trade is 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
                            • T
                              tobeyfxx last edited by

                              i dont understand.
                              can you please show an example of how you think it should be based on the description of the bot i gave

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

                                To save the EA starting equity add a pass block:

                                image.png

                                To close trades if equity is higher split the trees:

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

                                  check this please
                                  https://fxdreema.com/shared/6zclCRV8b

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tobeyfxx last edited by

                                    i assumed that in the condition block, on the left operand i would select Account and equity (>) right operand variable. but there is not drop down or selection for picking variables

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

                                      Connect the blocks, the condition is how you had it set

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

                                        Screenshot 2024-12-22 141743.png

                                        didnt work as expected

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

                                          Put the result into a comment, this way you can see on screen when things should close

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

                                            i have no idea on how to do that

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

                                            Online Users

                                            T
                                            M
                                            Z
                                            O
                                            R
                                            A

                                            11
                                            Online

                                            146.8k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors