Download MetaTrader 5

Why my Indicator (SubWindow) "Object Button" Not Sticking on indicator itself?

To add comments, please log in or register
Musngi
340
Musngi  

Why my Indicator (SubWindow) "Object Button" not sticking on indicator itself? If I used my indicator in chart that already have an indicator in subwindow then my indicator object button is showing in other indicators.

How can I change my indicator to remember the right place to put the object button on itself? 

Alain Verleyen
Moderator
33811
Alain Verleyen  
Use ChartWindowFind() inside your indicator to get the right subwindow.
Musngi
340
Musngi  
Alain Verleyen:
Use ChartWindowFind() inside your indicator to get the right subwindow.

I tried but don't work.

ObjectCreate("Pair_SW"+sw, OBJ_BUTTON, 1, ChartWindowFind(), 0, 0, 0, 0, 0);


 

Musngi
340
Musngi  

It works now. Thanks

ObjectCreate("Pair_SW"+sw, OBJ_BUTTON, ChartWindowFind(), 0, 0, 0, 0, 0, 0);
To add comments, please log in or register