Symbol

Description

The Symbol method returns the symbol name of the current chart.

Syntax

public Symbol(): string

Return Value

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

Example

try {
  const symbol = this.api.Symbol();
  console.log(`Current chart symbol: ${symbol}`);
} catch (error) {
  console.error("Failed to get chart symbol:", error.message);
}

Last updated