GetSymbolNumberProperty

Returns numeric properties of a symbol.

Syntax

GetSymbolNumberProperty(name: string, prop_id: ENUM_SYMBOL_INFO_NUMBER, positionType: TTradePositionType = 0): number

Parameters

  • name: string - The symbol name

  • prop_id: ENUM_SYMBOL_INFO_NUMBER - The property identifier

  • positionType: TTradePositionType - Optional. The position type for margin-related properties

Return Value

Returns a number representing the requested symbol property value.

Description

The GetSymbolNumberProperty method retrieves numeric properties of a specified symbol. For a complete list of available properties, see ENUM_SYMBOL_INFO_NUMBER.

Example

Last updated