Table of Contents

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 DateTimeOffset

ServerTime.

closedVolume decimal

The volume of position, which was closed by own trade.

pnL decimal

The profit, realized by this trade.

Properties

ClosedVolume

The volume of position, which was closed by own trade.

public decimal ClosedVolume { get; }

Property Value

decimal

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

decimal

ServerTime

Time.

public DateTimeOffset ServerTime { get; }

Property Value

DateTimeOffset