Class ExcelReportGenerator
- Namespace
- StockSharp.Algo.Strategies.Reporting
- Assembly
- StockSharp.Algo.dll
The report generator for the strategy in the Excel format.
public class ExcelReportGenerator : BaseReportGenerator, IReportGenerator
- Inheritance
-
ExcelReportGenerator
- Implements
- Inherited Members
- Extension Methods
Constructors
ExcelReportGenerator(IExcelWorkerProvider)
Initializes a new instance of the ExcelReportGenerator.
public ExcelReportGenerator(IExcelWorkerProvider provider)
Parameters
provider
IExcelWorkerProviderEcng.Interop.IExcelWorkerProvider.
Properties
Decimals
The number of decimal places. By default, it equals to 2.
public int Decimals { get; set; }
Property Value
Extension
Extension without leading dot char.
public override string Extension { get; }
Property Value
Name
Name.
public override string Name { get; }
Property Value
Template
The template file, to be copied into report and filled up with Strategy, Orders and Trades sheets.
public string Template { get; }
Property Value
Methods
Generate(Strategy, string, CancellationToken)
To generate the report.
public override ValueTask Generate(Strategy strategy, string fileName, CancellationToken cancellationToken)
Parameters
strategy
StrategyfileName
stringThe name of the file, in which the report is generated.
cancellationToken
CancellationToken