DocumentationMQL5 ReferenceStandard LibraryPrice ChartsChartIDChartIDChartIDReturns identifier of the chart.long ChartID() constReturn Value Chart identifier assigned to the chart class instance. If there is no chart assigned, it returns -1.Last updated on 2026-07-24Mode