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);

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
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?