MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Window functions  WindowsTotal

 
int WindowsTotal( )
Returns count of indicator windows on the chart (including main chart).
Sample:
Print("Windows count = ", WindowsTotal());