MQL4 Reference Chart Operations ChartID

ChartID

Returns the ID of the current chart.

long  ChartID();

Return Value

Value of long type.