STPosition Class

Position class

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
public class STPosition
Inheritance
Object    STPosition

Constructors

STPositionInitializes a new instance of the STPosition class
STPosition(STOrder)Initializes a new instance of the STPosition class

Properties

clientOrderId Unique ID of the originating order
closeDate Date and time when position was clsoed
closeOrderId Broker/exchange id of the closing order
closePrice Position close price
comission Position comission
comment Position vomment
executionTimeClose Time (in milliseconds) spent on closing the position
executionTimeOpen Time (in milliseconds) spent on opening the position
openDate Date and time when position was opened
openOrderId Broker/exchange id of the opening order
openPrice Position open price
PositionId Unique ID of the position
profit Position profit
sessionNum Index of original session for position in used session list
side Position side
slippageClose Resulting slippage (in pips) on closing the position
slippageOpen Resulting slippage (in pips) on opening the position
stopLoss Position Stop loss price
symbol Position symbol
takeProfit Position Take profit price
volume Position volume

Fields

See Also