Interface: IndividualPositionBase
Charting Library.IndividualPositionBase
Describes an individual position.
Hierarchy
-
IndividualPositionBase
Properties
askPrice
Optional
askPrice: number
Best ask price provided by the broker
avgPrice
Optional
avgPrice: number
The weighted average price of the individual position
bidPrice
Optional
bidPrice: number
Best bid price provided by the broker
canBeClosed
Optional
canBeClosed: boolean
Determines whether individual position can be closed
currency
Optional
currency: string
Instrument currency displayed in the Account Manager
date
date: number
Individual position open date (UNIX timestamp in milliseconds)
exitLevels
Optional
exitLevels: ExitLevel[]
Exit levels associated with the position. Used when BrokerConfigFlags.supportMultipleExitLevels is enabled.
guaranteedStop
Optional
guaranteedStop: number
Guaranteed stop loss price. Available when Brackets are enabled
id
id: string
Individual position ID. Usually id should be equal to brokerSymbol
lastPrice
Optional
lastPrice: number
Last price provided by the broker
marketValue
Optional
marketValue: number
Market value of the position
message
Optional
message: OrderOrPositionMessage
Message describing the state of the individual position
pl
Optional
pl: number
Profit/loss of the individual position
price
price: number
Individual position price
qty
qty: number
Individual position Quantity
side
side: Side
Individual position Side
stopLoss
Optional
stopLoss: number
Stop loss price. Available when Brackets are enabled
stopType
Optional
stopType: StopType
Stop Loss type
symbol
symbol: string
Symbol name
takeProfit
Optional
takeProfit: number
Take profit price. Available when Brackets are enabled
trailingStopPips
Optional
trailingStopPips: number
Trailing stop Pips value. Available when Brackets are enabled
trailingStopPrice
Optional
trailingStopPrice: number
Trailing stop price. Available when Brackets are enabled
unrealizedPl
Optional
unrealizedPl: number
Unrealized profit/loss
unrealizedPlPercent
Optional
unrealizedPlPercent: number
Unrealized profit/loss in percent
unrealizedPlQty
Optional
unrealizedPlQty: number
Unrealized profit/loss per quantity unit
updateTime
Optional
updateTime: number
Last update time (unix timestamp in milliseconds)
visiblePL
Optional
visiblePL: number
Visible profit/loss of the individual position