WindowIsVisible - Chart Operations - MQL4 Reference

MQL4 Reference Chart Operations WindowIsVisible

WindowIsVisible

Returns the visibility flag of the chart subwindow.

int  WindowIsVisible(
   int       index     // subwindow
   );

Parameters

index

[in]  Subwindow index.

Returned value

Returns true if the chart subwindow is visible, otherwise returns false. The chart subwindow can be hidden due to the visibility properties of the indicator placed in it.

Example:

  int maywin=WindowFind("MyMACD");
  if(maywin>-1 && WindowIsVisible(maywin)==true)
    Print("window of MyMACD is visible");
  else
    Print("window of MyMACD not found or is not visible");