MQL4 Reference Chart Operations ChartSymbol

ChartSymbol

Returns the symbol name for the specified chart.

string  ChartSymbol(
   long  chart_id=0      // Chart ID
   );

Parameters

chart_id=0

[in]  Chart ID. 0 means the current chart.

Return Value

If chart does not exist, the result will be an empty string.

See also

ChartSetSymbolPeriod()