TradePipeline
StockSharp.Algo.Strategies.Decomposed
Trade processing. Handles deduplication, PnL calculation, commission/slippage accumulation.
构造函数
TradePipeline(IPnLManager, IStatisticManager)
Trade processing. Handles deduplication, PnL calculation, commission/slippage accumulation.
- pnlManager
- PnL manager.
- stats
- Statistic manager.
属性
Commission : decimal?
Total accumulated commission.
MyTrades : IEnumerable<MyTrade>
All tracked trades.
方法
Reset()
Clear all data.
事件
CommissionChanged : Action
Fires when commission changes.
PnLChanged : Action<DateTime>
Fires when PnL changes due to a trade.
SlippageChanged : Action
Fires when slippage changes.
TradeAdded : Action<MyTrade>
Fires when a new trade is successfully added.