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 windowyou have written the code to draw the object in the main window. The highlighted 0 is the main window
![]() 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!
you have written the code to draw the object in the main window. The highlighted 0 is the main window
Thanks!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?