fxDreema

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

    Quick question for Miro1360

    Questions & Answers
    2
    12
    2656
    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.
    • isp00rt
      isp00rt last edited by isp00rt

      Hi Miro,
      This is the MT5 version of your pip counter for MT4 you so kindly helped me to develop last year:

      https://fxdreema.com/shared/1JvNdFyO

      I added a new feature to improve it. I want that only those closed trades from the very moment it is executed on the platform are counted from the history tab. This is why I added a Bucket of closed trades block on the project. However, two wierd things happen. The first one is the data format shown (the last number in the list on the top left screen). This is not how the block says it should be shown.

      The second one is how pips are counted. As you can see in this image the number is clearly wrong.

      0_1553501544975_01.png

      Before you tell me, I checked the pip size rules and they are correct for this broker. I simply duplicated the structure of your counter for MT4. Should this project be different for MT5?

      Thank you in advance

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        I think you must convert time variables, because there is plenty of formats 😄

        0_1553537849644_154b96d7-33fd-43dc-9571-f7e2c4b14019-image.png

        about the pips, I think there is a relation to the spread ... maybe spread is not included 😄

        Between trading and gambling is a very small gap, be careful.

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

          I didn't know formats should be specified manually. BTW, how can I write the vertical line separating 'Time_Date' and 'Time_Minutes'?

          On the other hand, you're right, spread is not included. How can it be done?

          Thanks.

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by

            copy that from there: |
            I used right ALT + W
            ... for the spread, well maybe do the calculation manually? ... or ask admin if he will add the spread option into settings 🙂

            Between trading and gambling is a very small gap, be careful.

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

              Great! Once more, thank you very much. But one more final question, please. Will time info put from block 13 into the 'Now' (on Init) variable be recognised by block 11 (bucket of closed positions)? Shoud I change the way block 11 can identify time?

              1 Reply Last reply Reply Quote 0
              • M
                miro1360 last edited by

                I think the way you used Bucket of trades is not right.

                Add a new variable of type int (call it now2)
                In on Init add this:
                0_1553694390733_f43dd4c4-b6f0-40b1-8549-c397010d0c65-image.png

                and the pips counter create without bucket of trades:
                0_1553694571810_621257f9-12d6-4471-9cbe-3276de2cd2e6-image.png

                I have not tested it, but something like that ...

                Between trading and gambling is a very small gap, be careful.

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

                  Ok. I'll try it.

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

                    As far as I cant tell your variable suggestion works perfect. Thank you.

                    Unfortunately, a new unexpected problem has appeared. Negative results are incorrectly counted! All losses are considered as gains and I have no idea why. 😞

                    Any hint?

                    1 Reply Last reply Reply Quote 0
                    • M
                      miro1360 last edited by

                      add another condition 😄 😄

                      0_1554137999773_fe80b70c-44e6-4707-9986-7e18571c8937-image.png

                      Between trading and gambling is a very small gap, be careful.

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

                        I'm afraid I disagree. This is not required for the MT4 version:

                        https://fxdreema.com/shared/x75d43Fwc

                        Negative results are correctly substracted there. Something is not working properly in the MT5 version, I'm afraid.

                        1 Reply Last reply Reply Quote 0
                        • M
                          miro1360 last edited by

                          in that case you should contact the admin and he can repair bugs 🙂

                          Between trading and gambling is a very small gap, be careful.

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

                            Ok. I will. Thank you once more.

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

                            Online Users

                            J
                            T
                            J
                            B
                            A
                            T
                            M

                            20
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors