PortfolioPnLManager

StockSharp.Algo.PnL

特定PortfolioName@に関連した利益損失管理責任者

実装: IPnLManager, IPersistable, ICloneable<IPnLManager>, ICloneable

コンストラクター

PortfolioPnLManager
public PortfolioPnLManager(string portfolioName, Func<SecurityId, Level1ChangeMessage> getSecDefinition)
portfolioPnLManager = PortfolioPnLManager(portfolioName, getSecDefinition)

特定PortfolioName@に関連した利益損失管理責任者

portfolioName
ポートフォリオ名
getSecDefinition
金融商品定義機能を入手してください。

プロパティ

PortfolioName
public string PortfolioName { get; }
value = portfolioPnLManager.PortfolioName

ポートフォリオ名

RealizedPnL
public decimal RealizedPnL { get; private set; }
value = portfolioPnLManager.RealizedPnL
portfolioPnLManager.RealizedPnL = value

利益損失に気付いた価値。

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

未実現利益損失の価値。

メソッド

Clone
public IPnLManager Clone()
result = portfolioPnLManager.Clone()

DataSeriesの深いコピーを作成します。

ProcessMessage
public bool ProcessMessage(Message message)
result = portfolioPnLManager.ProcessMessage(message)

市場データを含むメッセージを処理するため。

message
市場データを含むメッセージ。

戻り値: PnL was changed.

ProcessMyTrade
public bool ProcessMyTrade(ExecutionMessage trade, PnLInfo info)
result = portfolioPnLManager.ProcessMyTrade(trade, info)

取引の収益性を計算するため。取引がすでに前処理されていた場合、以前の情報は返ります。

trade
貿易。
info
新規取引に関する情報

戻り値: 、新しい貿易が、そうでなければ、受け取れば。

Reset
public void Reset()
portfolioPnLManager.Reset()

リセット状態。

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

金融商品情報を更新する。

l1Msg
担当: 佐藤 宏