Class PnLInfo
- Namespace
- StockSharp.Algo.PnL
- Assembly
- StockSharp.Algo.dll
Information on trade, its closed volume and its profitability.
public class PnLInfo
- Inheritance
-
PnLInfo
- Inherited Members
- Extension Methods
Constructors
PnLInfo(DateTimeOffset, decimal, decimal)
Initializes a new instance of the PnLInfo.
public PnLInfo(DateTimeOffset serverTime, decimal closedVolume, decimal pnL)
Parameters
serverTime
DateTimeOffsetclosedVolume
decimalThe volume of position, which was closed by own trade.
pnL
decimalThe profit, realized by this trade.
Properties
ClosedVolume
The volume of position, which was closed by own trade.
public decimal ClosedVolume { get; }
Property Value
Remarks
For example, in strategy position was 2. The trade for -5 contracts. Closed position 2.
PnL
The profit, realized by this trade.
public decimal PnL { get; }
Property Value
ServerTime
Time.
public DateTimeOffset ServerTime { get; }