Skip to main content

Interface: IndividualPosition

Charting Library.IndividualPosition

Describes an individual position.

Hierarchy​

Properties​

askPrice​

Optional

askPrice: number

Best ask price provided by the broker

Inherited from​

IndividualPositionBase.askPrice


avgPrice​

Optional

avgPrice: number

The weighted average price of the individual position

Inherited from​

IndividualPositionBase.avgPrice


bidPrice​

Optional

bidPrice: number

Best bid price provided by the broker

Inherited from​

IndividualPositionBase.bidPrice


canBeClosed​

Optional

canBeClosed: boolean

Determines whether individual position can be closed

Inherited from​

IndividualPositionBase.canBeClosed


currency​

Optional

currency: string

Instrument currency displayed in the Account Manager

Inherited from​

IndividualPositionBase.currency


date​

date: number

Individual position open date (UNIX timestamp in milliseconds)

Inherited from​

IndividualPositionBase.date


exitLevels​

Optional

exitLevels: ExitLevel[]

Exit levels associated with the position. Used when BrokerConfigFlags.supportMultipleExitLevels is enabled.

Inherited from​

IndividualPositionBase.exitLevels


extra​

Optional

extra: ExtraData

Inherited from​

WithExtraData.extra


guaranteedStop​

Optional

guaranteedStop: number

Guaranteed stop loss price. Available when Brackets are enabled

Inherited from​

IndividualPositionBase.guaranteedStop


id​

id: string

Individual position ID. Usually id should be equal to brokerSymbol

Inherited from​

IndividualPositionBase.id


lastPrice​

Optional

lastPrice: number

Last price provided by the broker

Inherited from​

IndividualPositionBase.lastPrice


marketValue​

Optional

marketValue: number

Market value of the position

Inherited from​

IndividualPositionBase.marketValue


message​

Optional

message: OrderOrPositionMessage

Message describing the state of the individual position

Inherited from​

IndividualPositionBase.message


pl​

Optional

pl: number

Profit/loss of the individual position

Inherited from​

IndividualPositionBase.pl


price​

price: number

Individual position price

Inherited from​

IndividualPositionBase.price


qty​

qty: number

Individual position Quantity

Inherited from​

IndividualPositionBase.qty


side​

side: Side

Individual position Side

Inherited from​

IndividualPositionBase.side


stopLoss​

Optional

stopLoss: number

Stop loss price. Available when Brackets are enabled

Inherited from​

IndividualPositionBase.stopLoss


stopType​

Optional

stopType: StopType

Stop Loss type

Inherited from​

IndividualPositionBase.stopType


symbol​

symbol: string

Symbol name

Inherited from​

IndividualPositionBase.symbol


takeProfit​

Optional

takeProfit: number

Take profit price. Available when Brackets are enabled

Inherited from​

IndividualPositionBase.takeProfit


trailingStopPips​

Optional

trailingStopPips: number

Trailing stop Pips value. Available when Brackets are enabled

Inherited from​

IndividualPositionBase.trailingStopPips


trailingStopPrice​

Optional

trailingStopPrice: number

Trailing stop price. Available when Brackets are enabled

Inherited from​

IndividualPositionBase.trailingStopPrice


unrealizedPl​

Optional

unrealizedPl: number

Unrealized profit/loss

Inherited from​

IndividualPositionBase.unrealizedPl


unrealizedPlPercent​

Optional

unrealizedPlPercent: number

Unrealized profit/loss in percent

Inherited from​

IndividualPositionBase.unrealizedPlPercent


unrealizedPlQty​

Optional

unrealizedPlQty: number

Unrealized profit/loss per quantity unit

Inherited from​

IndividualPositionBase.unrealizedPlQty


updateTime​

Optional

updateTime: number

Last update time (unix timestamp in milliseconds)

Inherited from​

IndividualPositionBase.updateTime


visiblePL​

Optional

visiblePL: number

Visible profit/loss of the individual position

Inherited from​

IndividualPositionBase.visiblePL