fxDreema

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

    Comment block does not show the correct information on chart

    Bug Reports
    3
    7
    35
    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.
    • E
      ExWize last edited by

      In fxDreema for MT5, the Comment block does not show the correct information from the Bucket of Positions block, on the chart in MT5 platform.

      For example, here is what I see on the chart in MetaTrader 5 :

      Trades Count: 6.75948526541678E+273

      Lots Total Value (Sum): 6.75948526541678E+273

      Profit Total Value (Sum): 6.75948526541678E+273

      For some variables used in the Expert Advisor, values I see on the chart are:

      0.00000000000000e+00

      inf

      Otherwise, the Expert Advisor is working fine.
      It is opening and closing trades as expected.

      Anyone had similar experience.

      Any help would be appreciated.

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

        This is a known problem with mt5, you have to use a ping block set up to mimic, set a variable to 0 - for each position - formula block to add 1 to the variable... you can use this set up for any information you need to get.

        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! 😊

        E 1 Reply Last reply Reply Quote 1
        • E
          ExWize @jstap last edited by

          @jstap

          Thanks jstap for your reply.

          I was pleased to know that this is a known problem with mt5, and not unique to my particular setup.

          I am not familiar with how to use a ping block.

          Could you please provide more information on that.

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

            This should work, you can use close positions for different results:
            https://fxdreema.com/shared/OpaH7iYwe

            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! 😊

            E 1 Reply Last reply Reply Quote 0
            • S
              sktsec @ExWize last edited by

              @ExWize
              It is the EMPTY_VALUE and numeric representation issue.

              For numeric representation, you can try function like DoubleToString(variable_name,Digits)

              capture_001_23072026_044014.png

              E 1 Reply Last reply Reply Quote 0
              • E
                ExWize @jstap last edited by

                @jstap

                Thanks jstap, I greatly appreciate your help.

                I was able to resolve the issue by adapting the blocks you provided to my Expert Advisor.

                This solution worked because it avoided using the "Bucket of Positions" block.

                Important takeaways from this experience:

                I believe this issue is caused by the underlying code of the Bucket of Positions block, and the way it interacts with the data feed from the broker.

                This issue occurs with some brokers, not all.

                One broker I used for years without this issue appearing at any time, then suddenly a few days ago this issue appeared, with the same MT5 Expert Advisor that was working as expected the day before.
                This means the broker changed something in their hardware or software which caused a conflict somewhere in the system.

                MT4 has the same problem.
                With one broker, I converted my MT5 Expert Advisor to MT4, but it made no difference.
                The same issue appeared with the MT4 Expert Advisor.

                Had my trading algorithm depended on data from the Bucket of Positions block, the consequences could have been more serious than just an error in comments on a chart !

                Ultimately, the issue seems to be caused by a conflict between broker infrastructure, MetaQuotes Language (MQL), and the language in which fxDreema is written.

                Acknowledgements:

                Many thanks to the developers of fxDreema.

                There are similar tools for MetaTrader, but nothing comes even close to fxDreema.

                1 Reply Last reply Reply Quote 1
                • E
                  ExWize @sktsec last edited by

                  @sktsec

                  Tried DoubleToString(variable_name,Digits) with a variable that depended on data received from Bucket of Positions.

                  The variable value printed on chart was wrong.

                  This further confirms that the issue is caused by Bucket of Positions block.

                  The other two blocks in this category:
                  Bucket of Closed Positions
                  Bucket of Pending Positions

                  Should also be handled with care !

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

                  Online Users

                  P
                  E
                  X
                  T

                  12
                  Online

                  148.2k
                  Users

                  22.4k
                  Topics

                  122.7k
                  Posts

                  Powered by NodeBB Forums | Contributors