Wealth-Lab Framework
Search Framework:
BrokerPosition
Namespace: WealthLab.Backtest
Parent: Object
Parent: Object
Represents an open position held in the associated Broker account.
Constructors
BrokerPosition
public BrokerPosition(BrokerAccount ba)
Pass the associated BrokerAccount instance when creating a new instance.
Derived Properties
Profit
public double Profit
Returns the current profit of the position, based on its CurrentPrice, BasisPrice, and Quantity.
ProfitPct
public double ProfitPct
Returns the current percentage profit of the position, based on its CurrentPrice and BasisPrice.
Value
public double Value
Returns the current value of the position, based on its CurrentPrice and Quantity.
Members
BasisPrice
public double BasisPrice
The original basis price of the position, or the price at which the shares/contracts were originally acquired.
CurrentPrice
public double CurrentPrice
The most recent price of the underlying position's Symbol, as reported by the broker.
PositionType
public PositionType PositionType
The position's type, either PositionType.Long or PositionType.Short.
Quantity
public double Quantity
The number of shares or contracts in the position.
Symbol
public string Symbol
The position's symbol.