| / | Forum |
|
grufgran
2011.04.07 11:55
Hi, If I want to put a comment in the upper left corner of chart, I can use the Comment(...) function. But is there any way for an ea to read what the comment is for the moment?, like a GetComment() function or similar. Best regards Grufgran |
|
A short description of various illusions that come up when people trade using martingale betting strategies or misuse spiking and the like approaches. |
|
brewmanz
2011.04.07 12:37
AFAIK not directly. But then, when you write a comment, also put it into a static variable, and retrieve it from there |
|
grufgran
2011.04.07 16:37
brewmanz: AFAIK not directly. But then, when you write a comment, also put it into a static variable, and retrieve it from there Thank you for your answer. My problem is that there is an existing comment, placed by an other (third party) indicator. I do not want to destroy that comment. Just add some "own" text at the end of the comment. Sorry for not explaining that from the beginning. |
|
WHRoeder
2011.04.07 18:10
Create a text object below the existing comment for your use. Don't put the indicator on the chart, EA doesn't need it. |
|
JJF
2011.04.07 22:02
You can start your comment with \n\r that will put a <LF><CR> after your current display (you can use several like this) something like: Comment ("\n\rHere is my comment.. for one line space"); or Comment ("\n\r\n\r\n\rHere is my comment.. put three lines space"");
James :-)
|
|
grufgran
2011.04.08 12:44
Thanks everybody. I will look into your suggestions. |