MQL4 Reference Chart Operations WindowFind

MQL4 Help as One File:

WindowFind

Returns the window index containing this specified indicator.

int  WindowFind(
   string       name   // name
   );

Parameters

name

[in]  Indicator short name.

Returned value

If indicator with name was found, the function returns the window index containing this specified indicator, otherwise it returns -1.

Note

WindowFind() returns -1 if custom indicator searches itself when init() function works.

Example:

  int win_idx=WindowFind("MACD(12,26,9)");