IReportSource

StockSharp.Reporting

The interface for providing data to report generators. Decouples reports from concrete strategy implementation.

Свойства

Commission : decimal?

Total commission.

Latency : TimeSpan?

Total latency.

Name : string

Strategy name.

Orders : IEnumerable<ReportOrder>

Orders collection.

OwnTrades : IEnumerable<ReportTrade>

Own trades collection.

Parameters : IEnumerable<ValueTuple<string, object>>

Get strategy parameters as name-value pairs.

PnL : decimal

Total profit-loss.

Position : decimal

Current position.

Positions : IEnumerable<ReportPosition>

Position round-trips collection.

Slippage : decimal?

Total slippage.

StatisticParameters : IEnumerable<ValueTuple<string, object>>

Statistic parameters as name-value pairs.

TotalWorkingTime : TimeSpan

The total time of strategy operation.

Методы

Prepare()

Prepare data for report generation. Call this before accessing any data to ensure all values are up-to-date.