public class Position : TradingObject, IConnectionBindedObject, IUniqueID, ITradingObject, IMessageBuilder<MessageOpenPosition>
Properties
CurrentPrice
The market price obtainable from your broker.
Declaration
public double CurrentPrice { get; }
Property Value
Type
Description
System.Double
Fee
Gets fee amount for the position.
Declaration
public PnLItem Fee { get; }
Property Value
Type
Description
TradingPlatform.BusinessLayer.PnLItem
GrossPnL
Gets Profit/loss (without swaps or commissions) all calculated based on the current broker's price. For open position it shows the profit/loss you would make if you close the position at the current price. If position closed, this parameter show profit/loss what trader have after closing this position.
Declaration
public PnLItem GrossPnL { get; }
Property Value
Type
Description
TradingPlatform.BusinessLayer.PnLItem
GrossPnLTicks
Returns ticks amount between open and current price.
Declaration
public double GrossPnLTicks { get; }
Property Value
Type
Description
System.Double
LiquidationPrice
Declaration
public double LiquidationPrice { get; }
Property Value
Type
Description
System.Double
NetPnL
Gets Profit/loss calculated based on the current broker's price. For open position it shows the profit/loss you would make if you close the position at the current price. If position closed, this parameter show profit/loss what trader have after closing this position.
Will be triggered on each TradingPlatform.BusinessLayer.Position.UpdateByMessage(TradingPlatform.BusinessLayer.Integration.MessageOpenPosition) and TradingPlatform.BusinessLayer.Position.UpdatePnl(TradingPlatform.BusinessLayer.PnL) invocation