How to hide indicator window programmatically

I tried this but it doesn't work.
ChartSetInteger(0,  CHART_WINDOW_IS_VISIBLE,  ChartWindowFind(), 0);
You can't. At least not in a standard and simple way.
dc3463456:
I tried this but it doesn't work.
I don't know if this works, but you could try to set CHART_HEIGHT_IN_PIXELS. That would at least allow you to shrink the subwindow to make it be "hidden".
Dominik Christian Egert #:
I don't know if this works, but you could try to set CHART_HEIGHT_IN_PIXELS. That would at least allow you to shrink the subwindow to make it be "hidden".
Not working in MT4, there is always a small part visible.