fxDreema

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

    Trying to close a set of trades using overall profit

    Questions & Answers
    2
    10
    304
    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
      Tulefi last edited by

      I have a series of trades that open using "add to volume". The trades are opening fine. But I am having no joy closing the trades based on average profit.
      Please advise what I need to try to fix this.Screen Shot 2023-06-04 at 21.23.45 pm.png

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @Tulefi last edited by

        @Tulefi remove "for each trade" above "check........unrealized" and see what happens

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

          Hi AMbrogio - that has worked and is generating data, thank you.

          A 1 Reply Last reply Reply Quote 0
          • A
            ambrogio @Tulefi last edited by

            @Tulefi 👍

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

              I have come across a related issue. I need to know the current profit for a bunch of trades to use in a close out condition. Any ideas?

              1 Reply Last reply Reply Quote 0
              • A
                ambrogio last edited by

                you can make a formula block with equity-balance. Put the result in a variable

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

                  Thank you that is a good idea. Please help me with this logic. My aim is to say that if the average price of the open trades - current price > 10 pips, then close all the trades. I am happy to try your solution but how do I set that up to achieve what I am after?

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @Tulefi last edited by

                    @Tulefi since you are adding volume, you don't need the average price only, but you need to calculate the total lot size of runnign trades. This question was already discussed many time, and i cannot find the most helpful thread anymore, but i saved the result in this example that someone have done time ago (i don't remember who)

                    https://fxdreema.com/shared/OWyWkcamd

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

                      I have looked and tried to understand. Thank you. I can't find "For each position" in the menu?

                      1 Reply Last reply Reply Quote 0
                      • A
                        ambrogio last edited by

                        MT5 for each position
                        MT4 for each trade

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

                        Online Users

                        L
                        A
                        G
                        N
                        S
                        E
                        S
                        N
                        O

                        27
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors