PortfolioPnLManager
StockSharp.Algo.PnL
The profit-loss manager, related for specified PortfolioName.
Реализует: IPnLManager, IPersistable, ICloneable<IPnLManager>, ICloneable
Конструкторы
PortfolioPnLManager(string, Func<SecurityId, Level1ChangeMessage>)
The profit-loss manager, related for specified PortfolioName.
- portfolioName
- Portfolio name.
- getSecDefinition
- Get security definition function.
Свойства
PortfolioName : string
Portfolio name.
RealizedPnL : decimal
The value of realized profit-loss.
UnrealizedPnL : decimal
The value of unrealized profit-loss.
Методы
Clone() : IPnLManager
Creates a deep copy of a DataSeries
ProcessMessage(Message) : bool
To process the message, containing market data.
- message
- The message, containing market data.
Возвращает: PnL was changed.
ProcessMyTrade(ExecutionMessage, PnLInfo) : bool
To calculate trade profitability. If the trade was already processed earlier, previous information returns.
- trade
- Trade.
- info
- Information on new trade.
Возвращает: , if new trade received, otherwise, .
Reset()
Reset state.