fxDreema

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

    Calculate the sum of profits

    Questions & Answers
    2
    5
    127
    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
      MT4Nutzer last edited by

      Hello community,

      does anybody know a way to calculate the sum of running profits of all open profitable trades (without the sum of losses of the running loss trades)?

      Greetings
      Tommi

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

        modify a variable to 0 - for each trade/position - check profit (>0) - formula block (add in loop trade 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! 😊

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

          @jstap said in Calculate the sum of profits:

          modify a variable to 0 - for each trade/position - check profit (>0) - formula block (add in loop trade profit)

          Thank you @jstap !
          Is this correct:
          https://fxdreema.com/shared/Y7QOkdq5
          ?

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

            Yes but no because you didn't set the variable to 0 before starting the loop:

            msedge_Qcse8CTRhd.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 1
            • M
              MT4Nutzer last edited by

              Thank you @jstap ! I will try it.

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

              Online Users

              C
              M
              P
              R
              S
              E
              M
              P

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors