fxDreema

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

    How to display Labels or Text Input on the Chart

    Questions & Answers
    5
    10
    5964
    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.
    • K
      kekhumbo last edited by

      I would like to display the following on my chart but am failing. For the Current Market:

      1 No of Pending Orders:
      2 No of Sale Orders:
      3 No of Buy Orders:
      4 No of Open Trades:
      5 No of Open Sale Trades:
      6 No of Open Buy Trades:
      7 Current Profit of Open Trades:
      Please help me.

      FXFun 1 Reply Last reply Reply Quote 0
      • FXFun
        FXFun @kekhumbo last edited by FXFun

        @kekhumbo Hello, I feel bad that you haven't gotten any help for 3 days, so I'll try to help you. 😇

        Use block Output & Communication / Comment.

        Most of the things you want to display you can find under "Trade Statistics" & "Account". See image...

        0_1507394798077_Screenshot-2017-10-7 FX Executor v0 3.png

        In the second dropdown you can choose things like Now for current open trades or Historical for close trades or count both.

        If you place the comments onTick it will be updated on every tick, BUT not during weekends.

        If you place the comments onTrade it will be updated only on position modification, which means nothing will be visible, until a trade has been placed, closed etc. I like this method, since it places less workload on MT4 and processors.

        You can also use onCart, which will also lessen load on processing, to only when you do something on the chart. When you are not there, nothing is updated.

        You can also use onTimer. Just decide how often you want this to update, like once per second or minute.

        I believe you can find all of the things you ask for in these menus. Hope this helps. Good luck.

        Life is FUN - when you have control over it. Take control over FX & Have FUN all the Time! :-)

        1 Reply Last reply Reply Quote 0
        • P
          Processman last edited by

          How to cut extra decimals off (Draw text) , any idea? ... Custom Block & DoubleToString ?
          https://docs.mql4.com/convert/doubletostring

          0_1507536011526_AUDUSDM30Dreema.jpg

          FXFun 1 Reply Last reply Reply Quote 0
          • FXFun
            FXFun @Processman last edited by FXFun

            @Processman

            Example:

            In Comment field replace your "Price"-variable with:

            NormalizeDouble(Price,2)

            (Where Price is your Price-variable)

            Change "2" to how many decimals you want.

            The above should show Price: 0.78

            Use this principle for all your other variables.

            Have Fun Processman! 🙂

            Life is FUN - when you have control over it. Take control over FX & Have FUN all the Time! :-)

            1 Reply Last reply Reply Quote 0
            • P
              Processman last edited by

              No fun ... Does not work(NormalizeDouble) comment field. And I actually use
              "Draw text" block (more features , font type , etc.) ... FXDreema previous version
              contained how many decimals parameter for numeric value ... I would like this back.
              Sorry my bad english :simple_smile:

              FXFun 1 Reply Last reply Reply Quote 0
              • FXFun
                FXFun @Processman last edited by FXFun

                @Processman

                Some Fun anyway... It works for me, even with "Draw Text"-block and formatting. See image how to do it... and evidence it works. 😉

                0_1507561433183_MQL4_NormalizeDouble.jpg

                Now, I will agree that lately it seems a bit glitchy, meaning it works, but suddenly it will not work, and then the glitch goes away and it works again. Sometimes I switch Timeframe and it's then not working.

                That must be an error in FXDreema, and there is only one man on earth that can fix that: Mr FXDreema himself - Radoslav!

                Radoslav has also promised to fix Normalizing for the built in functions, which also seem to have lost its normalization lately, like when I want to show Balance. Sometimes it looks like: 525.1200000001 - which is ugly.

                But these things are out of your and mine control.

                Life is FUN - when you have control over it. Take control over FX & Have FUN all the Time! :-)

                1 Reply Last reply Reply Quote 0
                • P
                  Processman last edited by

                  Now is fun , this works and the numbers look better. Maybe not best way
                  use NormalizeDouble ? ... But this is better than nothing ... Thanks man 👍

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

                    maybe when you use option "Text (code input)" it can be better ...

                    0_1507570515442_upload-cf571f70-be1b-4e41-b11c-d67699437f25

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

                    1 Reply Last reply Reply Quote 0
                    • P
                      Processman last edited by

                      OK , this works too , maybe a better choice ? ... Thanks 👍

                      1 Reply Last reply Reply Quote 2
                      • J
                        jacksonuk last edited by

                        dfhudfhdi,ufd

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

                        Online Users

                        H
                        E
                        A
                        G
                        Q

                        22
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors