fxDreema

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

    How do I concatinate a string to a string variable for comme

    Questions & Answers
    2
    5
    940
    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.
    • D
      dscoles last edited by

      I would like to add a string to the value that you can see here in the screen shot of the comment block. I created the temp string so that I can display a number in the Journal (for testing) but once I have that string, is there a way to now add some descriptive notation in the same block?

      http://prntscr.com/6yhjue

      Thanks,

      Dwight

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

        This is ugly, but... https://fxdreema.com/shared/1RTr8YOwe The trick here is to use "" + in the beginning and + "" at the end.
        This also can happen with "Custom MQL4 code"

        The problem with strings is that in the code they must be inside " ", but in the generator I decided to add " and " later, when the project is generated. Otherwise people will always ask me why do they have errors when they write something like Hello, World without " ".

        Maybe I can just extend the Print block with few strings. I also want to glue some strings together in this block.

        If you only want to check some values while the EA is tested, I can suggest this approach (I'm using this very often now and I like it) - to pause the backtest when you want to see values: https://fxdreema.com/shared/ebrPtDWtd

        1 Reply Last reply Reply Quote 0
        • D
          dscoles last edited by

          Thanks Admin,

          Great Idea. And, I am using comments a lot right now. Your new comment block works great! I will try the " + "stuff" + " (If I understood this correctly.)

          Thanks.

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

            It's with double-double quotes "" + and + "". Why? Because 🙂

            1 Reply Last reply Reply Quote 0
            • D
              dscoles last edited by

              Thank you.

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

              Online Users

              R
              A
              E

              8
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors