Table of Contents

Interface IPnLManager

Namespace
StockSharp.Algo.PnL
Assembly
StockSharp.Algo.dll

The interface of the profit-loss calculation manager.

public interface IPnLManager : IPersistable
Extension Methods

Properties

PnL

Total profit-loss.

decimal PnL { get; }

Property Value

decimal

RealizedPnL

The value of realized profit-loss.

decimal RealizedPnL { get; }

Property Value

decimal

UnrealizedPnL

The value of unrealized profit-loss.

decimal? UnrealizedPnL { get; }

Property Value

decimal?

Methods

ProcessMessage(Message, ICollection<PortfolioPnLManager>)

To process the message, containing market data or trade. If the trade was already processed earlier, previous information returns.

PnLInfo ProcessMessage(Message message, ICollection<PortfolioPnLManager> changedPortfolios = null)

Parameters

message Message

The message, containing market data or trade.

changedPortfolios ICollection<PortfolioPnLManager>

Changed PortfolioPnLManager list.

Returns

PnLInfo

Information on new trade.

Reset()

To zero PnL.

void Reset()