fxDreema

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

    How to see current profit?

    Questions & Answers
    5
    11
    3884
    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.
    • G
      guille4 last edited by

      Hi Radoslav, i cannot find a way to print on chart the current profit (or loss) of the current pair. I only get the total current profit on overall account, so if I have open more than one chart of different pairs, I cannot individualize the profit on each chart of these pair. Any idea how to get this and print on chart as comment?

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

        Depending on what you mean by "on each chart". I can suggest to try this thing: https://fxdreema.com/demo/mt4-bucket-trades

        H 2 Replies Last reply Reply Quote 0
        • G
          guille4 last edited by

          you are a genius.

          1 Reply Last reply Reply Quote 0
          • H
            Hadees @fxDreema last edited by Hadees

            Hi - Thanks for the example. For each of the comments like Profit and total lots how do i restrict the value shown to 2 decimal places ?

            1 Reply Last reply Reply Quote 0
            • H
              Hadees @fxDreema last edited by Hadees

              Hi - Thanks for the example. How do i normalise the values shown as a comment please ?.

              1 Reply Last reply Reply Quote 0
              • J
                josecortesllobat last edited by

                You can use a "Custom MQL" block with the mql function NormalizeDouble to get the number of decimals you want to show in the variable at "Comment" block

                https://www.mql5.com/en/docs/convert/normalizedouble

                H 1 Reply Last reply Reply Quote 0
                • H
                  Hadees @josecortesllobat last edited by

                  @josecortesllobat Thanks for the reply im not sure where this would go in the sequence. Would the custom block go here i am wanting to normalise the the total profit for the bucket of trades ? 0_1545849938127_6f46ffdd-9c7e-4b9f-9a07-5c2d98deaf23-image.png

                  1 Reply Last reply Reply Quote 0
                  • J
                    josecortesllobat last edited by

                    The NormalizeDouble function needs to be used with a variable that can be normalized. Like this

                    Variable1 = LotsCount
                    Variable1 = NormalizeDouble(Variable1,2)

                    That syntax will normalize the variable "Variable1" with 2 decimals. Then you can show the value of "Variable1" in the "Comment" block.

                    You can get a similar example from here

                    https://fxdreema.com/forum/topic/6571/round-results

                    1 Reply Last reply Reply Quote 0
                    • H
                      Hadees last edited by

                      thanks for your help i have managed to get that working..0_1545858873413_1c1f03b6-dc9a-4ef5-99f4-b99447cc9a15-image.png .

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        josecortesllobat @Hadees last edited by

                        @hadees Nice!!!

                        1 Reply Last reply Reply Quote 0
                        • C
                          cfabian last edited by

                          Hi there,
                          I cannot make the print the trades status coments on my MT4. Copied the logic as in the main example, and it does not do anything. Not a single letter. Do I need to enable special permision?

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

                          Online Users

                          T
                          P
                          C
                          S
                          T
                          I
                          B
                          A

                          20
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors