MQL4 Reference Chart Operations ChartID
Returns the ID of the current chart.
long ChartID();
Return Value
Value of long type.