fxDreema

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

    getting the sum total of profitable running trades

    Questions & Answers
    2
    3
    773
    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.
    • U
      uchiha last edited by

      Hello fxdreema

      I have been issues getting the sum total of profitable running trades, I can use For Each Trade to get for 1 Trade but not for multiple trades. And using Check Blocks does does not filter the loosing trades and cannot output the actual sum.

      Any idea's how to go about it?

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

        https://fxdreema.com/shared/CYJWqKDWc

        OrderProfit() > 0
        

        ... this is the "advanced" part that I used in block 4. OrderProfit() is the value of the profit in MQL4. What this code does is to allow only those trades for which their profit value is bigger than 0

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          Bless your soul 😄
          I hope you can update the offline version ASAP.

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

          Online Users

          F
          C
          A
          E

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors