how to draw a text on sub indicator window

 

I can draw a text or create an object on main indicator window, but I use sub-window number to draw a text on sub indicator window, it draws on main window. Any one can help?

 
Show what code you are using to draw the object and maybe somebody can help you
 
dolemi:

I can draw a text or create an object on main indicator window, but I use sub-window number to draw a text on sub indicator window, it draws on main window. Any one can help?


#property  indicator_separate_window


int WinNo;

int init()

{

       WinNo = ChartID(); //Is it correct to get child window ID?

}

int start()

{

     ObjectCreate( WinNo, "Label1", OBJ_LABEL,0,0,0);  // this shows on main window, not at separate window

     ...

}

 
     ObjectCreate( WinNo, "Label1", OBJ_LABEL,0,0,0);  // this shows on main window, not at separate window

    
you have written the code to draw the object in the main window. The highlighted 0 is the main window
 
Don't paste code
Play video
Please edit your post.
For large amounts of code, attach it.
 
GumRai:
you have written the code to draw the object in the main window. The highlighted 0 is the main window
Thanks!
 
WHRoeder:

Play video
Please edit your post.
For large amounts of code, attach it.
Thanks!
Reason: