fxDreema

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

    Problem Calculate Profits in Open Price (METATRADER 5), Image+code

    Questions & Answers
    2
    6
    1034
    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.
    • I
      ivanvc last edited by

      Hello everyone, I have the following problem, when you send orders to buy or sell metatrader 5 and I use the strategy viewer, I execute step by step, sail by candle to check the profits of those orders and their total. These do not correspond. I do not know exactly what is happening. Since if I made a Close of orders when reaching a profit this does not match.

      0_1560326302481_bug.png

      https://fxdreema.com/shared/ripPjha8b

      1 Reply Last reply Reply Quote 0
      • I
        ivanvc last edited by

        Bug? https://fxdreema.com/forum/topic/4600/mt5-close-less-profitable-position-block-bug

        1 Reply Last reply Reply Quote 0
        • I
          ivanvc last edited by

          up thnks! @FXDREEMA

          1 Reply Last reply Reply Quote 0
          • I
            ivanvc last edited by

            ?????????

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

              I have no idea how those trade buckets work. Maybe trading costs makes the difference.

              I would just use a variable and a loop to calculate any information. It's easier to troubleshoot:
              https://fxdreema.com/shared/eOts10xOc

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              I 1 Reply Last reply Reply Quote 1
              • I
                ivanvc @roar last edited by

                @roar I thought the same. But the profit shown in the graph always has a late candle. This only happens in Metatrader 5. I have tried the order loop and it keeps giving the same error. Thanks for trying to help.

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

                Online Users

                P

                9
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors