MQL4 Reference Chart Operations WindowsTotal
Returns total number of indicator windows on the chart.
int WindowsTotal();
Parameters
None.
Returned value
Total number of indicator windows on the chart (including main chart).
Example:
Print("Total windows = ", WindowsTotal());