MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Window functions  WindowFind

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int WindowFind( string name)
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.
Parameters:
name   -   Indicator short name.
Sample:
int win_idx=WindowFind("MACD(12,26,9)");