Why my Indicator (SubWindow) "Object Button" Not Sticking on indicator itself?
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);
It works now. Thanks
ObjectCreate("Pair_SW"+sw, OBJ_BUTTON, ChartWindowFind(), 0, 0, 0, 0, 0, 0);
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?