Show / Hide Table of Contents

Class PnLInfo

Information on trade, its closed volume and its profitability.

Inheritance
Object
PnLInfo
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

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾