SelectTradingSymbol

Sets the current trading symbol.

Syntax

SelectTradingSymbol(name: string): boolean

Parameters

  • name: string - The name of the symbol to set as current

Return Value

Returns a boolean indicating whether the symbol was successfully selected (true) or not (false).

Description

The SelectTradingSymbol method sets the specified symbol as the current trading symbol.

Example

// Select a specific trading symbol
const symbolSelected = this.api.SelectTradingSymbol('EURUSD')
if (symbolSelected) {
    console.log('EURUSD selected as current trading symbol')
}

Last updated