MQL4 - automated forex trading   /  

Forum

Is it possible for an ea to read the comment?

Back to topics list To post a new topic, please log in or register

avatar
6
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


What Is a Martingale?

What Is a Martingale?

A short description of various illusions that come up when people trade using martingale betting strategies or misuse spiking and the like approaches.


avatar
571
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


avatar
6
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.



avatar
4328
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.


avatar
38
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

:-)





avatar
6
grufgran 2011.04.08 12:44 

Thanks everybody.

I will look into your suggestions.


Back to topics list  

To add comments, please log in or register