Printing Group # and/or other text
-
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
-
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. -
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.
-
... 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?
-
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
-
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?
-
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.
-
What object do you want to create - text or label?
-
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
