Write TEXT into a indicator window, how?

 

Hi,

How does one write TEXT into an indicator window with code, esp at the very top of the indicator window. Like here in this volume indicator window !

I dont want to use the indictators NAME 'VolumeTL'.

Please advise thanks

 

Use ObjectCreate() to create OBJ_TEXT or OBJ_LABEL

text is aligned by time and price, label is aligned by window pixels.

 
phy wrote >>

Use ObjectCreate() to create OBJ_TEXT or OBJ_LABEL

text is aligned by time and price, label is aligned by window pixels.

Does this mean when I use Objectcreate() with "OBJ_TEXT" in an Indicator, the text primary appears in the indicator window and not the main chart ?? is this correct ?

 

The documentation says:

bool ObjectCreate( string name, int type, int window, datetime time1, double price1, datetime time2=0, double price2=0, datetime time3=0, double price3=0)

Creation of an object with the specified name, type and initial coordinates in the specified window.

The main window is window 0.

First indicator subwindow is window 1.

Second indicator subwindow is window 2.

And so on.

Reason: