IPnLManager

StockSharp.Algo.PnL

The interface of the profit-loss calculation manager.

Implements: IPersistable, ICloneable<IPnLManager>, ICloneable

Properties

RealizedPnL
public decimal RealizedPnL { get; }
value = iPnLManager.RealizedPnL

The value of realized profit-loss.

UnrealizedPnL
public decimal UnrealizedPnL { get; }
value = iPnLManager.UnrealizedPnL

The value of unrealized profit-loss.

Methods

ProcessMessage
public PnLInfo ProcessMessage(Message message, ICollection<PortfolioPnLManager> changedPortfolios)
result = iPnLManager.ProcessMessage(message, changedPortfolios)

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

message
The message, containing market data or trade.
changedPortfolios
Changed PortfolioPnLManager list.

Returns: Information on new trade.

Reset
public void Reset()
iPnLManager.Reset()

To zero PnL.

UpdateSecurity
public void UpdateSecurity(Level1ChangeMessage l1Msg)
iPnLManager.UpdateSecurity(l1Msg)

Update the security information.

l1Msg
Level1ChangeMessage