GetChartSymbol

Description

The GetChartSymbol method retrieves the trading symbol of the specified chart.

Syntax

public GetChartSymbol(chartId: number): string

Parameters

  • chartId: A number representing the chart ID

Return Value

Returns a string representing the chart's trading symbol (e.g., "EURUSD").

Example

const chartId = this.api.GetCurrentChartId()
const symbol = this.api.GetChartSymbol(chartId)
console.log(`Chart ${chartId} is showing ${symbol}`)

Last updated