How do I concatinate a string to a string variable for comme
-
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?
Thanks,
Dwight
-
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
-
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.
-
It's with double-double quotes "" + and + "". Why? Because

-
Thank you.