Is it possible for an ea to read the comment?

 

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

 

AFAIK not directly.

But then, when you write a comment, also put it into a static variable, and retrieve it from there

 
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.

 

Create a text object below the existing comment for your use.

Don't put the indicator on the chart, EA doesn't need it.

 


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

:-)




 

Thanks everybody.

I will look into your suggestions.

Reason: