fxDreema

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

    Printing Group # and/or other text

    Questions & Answers
    2
    9
    1356
    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.
    • T
      Trader3487 last edited by

      Is there a way to print group # on the chart - either on the candle or comment?
      Is there a way to print free text? I tried using text value with indicator but it returned an error. Thank you đŸ™‚

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

        To print group number (which is related to the magic number, read about it in the help or somewhere in the forum) you first need to select the trade or order (with "For each Trade" for example, read it's description for more info). Then there is a block "Comment on chart" where you can load multiple values to print right on the chart, and Group number also - somewhere in the pink category that starts with "(in loop)...".
        For text... also "Comment on chart" if you want it on the chart.
        I can also suggest "Indicator tester" block to backtest various numeric values.

        1 Reply Last reply Reply Quote 0
        • T
          Trader3487 last edited by

          ok, good to know about group #s - thanks. I tried using "indicator tester" to print custom text but it returns an error when exporting ex4 file.

          1 Reply Last reply Reply Quote 0
          • T
            Trader3487 last edited by

            ... I might have asked you this before but can't find the answer: any way to print comments on candle itself instead of at top left corner of chart?

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

              That comment section on the left is native for MT4 and MT5, it's how it is and cannot be modified... and is not treated as an object. To print text somewhere else object is used - Label or Text object. Here is the difference:
              http://docs.mql4.com/en/constants/objec ... t/obj_text
              http://docs.mql4.com/en/constants/objec ... /obj_label
              I started to write 1 block to draw all available objects once and as you can guess I abandoned that block. I don't know when will I finish it, but at least now the new MQL4 is done and I have green light đŸ™‚

              1 Reply Last reply Reply Quote 0
              • T
                Trader3487 last edited by

                I see a "delete objects" block but I don't see one to create objects. Maybe there is a feature within aother block to add a text object?

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

                  No, there is no such block, that's what I was saying - I started to create it and I'm in the middle. There are so many different objects and each has it's own unique set of parameters, also the difference between MQL4 and MQL5 matters because I normally create blocks for both in the same time... so again, it's on the way but I don't know why, and I expect this to be a block with big code so I'm not even sure how it will fit into the picture.

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

                    What object do you want to create - text or label?

                    1 Reply Last reply Reply Quote 0
                    • T
                      Trader3487 last edited by

                      ok, I understand - no pressure. I was referring to text (http://docs.mql4.com/en/constants/objec ... t/obj_text) - being able to print any text, including "this is example of text" over the candle. Would be a nice feature to have but not critical đŸ™‚

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

                      Online Users

                      E
                      Y
                      L
                      F
                      S
                      F
                      N
                      S
                      E

                      25
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors