Class PnLInfo
Information on trade, its closed volume and its profitability.
Namespace: StockSharp.Algo.PnL
Assembly: StockSharp.Algo.dll
Syntax
public class PnLInfo : Object
Constructors
PnLInfo(ExecutionMessage, Decimal, Decimal)
Initializes a new instance of the PnLInfo.
Declaration
public PnLInfo(ExecutionMessage trade, Decimal closedVolume, Decimal pnL)
Parameters
Type | Name | Description |
---|---|---|
ExecutionMessage | trade | Own trade. |
Decimal | closedVolume | The volume of position, which was closed by own trade. |
Decimal | pnL | The profit, realized by this trade. |
Properties
ClosedVolume
The volume of position, which was closed by own trade.
Declaration
public Decimal ClosedVolume { get; }
Property Value
Type | Description |
---|---|
Decimal |
Remarks
For example, in strategy position was 2. The trade for -5 contracts. Closed position 2.
PnL
The profit, realized by this trade.
Declaration
public Decimal PnL { get; }
Property Value
Type | Description |
---|---|
Decimal |
Trade
Own trade.
Declaration
public ExecutionMessage Trade { get; }
Property Value
Type | Description |
---|---|
ExecutionMessage |