how to place a text in an indicator?

 

hi programmers!

i found this macd-indicator with an alert. now i would like to print LONG in the indicator window when the histogram is > 0 and SHORT when histogram is < 0.

but i have no idea how to print a text. i tried it with OBJECTSET but it doesn't work. can somebody please help me?

thanks!!!!

 
 
comment() is easy... thanks!!!
 
And how would you place text so that it appears on the left of the chart against a line and stays there when you scroll left to right? i.e. like Comment() but lower down. I've been playing around for some time and can't figure this out...
 
 
qjol:

OBJ_LABEL

Thanks. But this doesn't place the text against a line - it places it at a fixed point in the window. I need to have it showing at a particular price level in order to be adjacent to the line.