Table of Contents

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 IExcelWorkerProvider

Ecng.Interop.IExcelWorkerProvider.

Properties

Decimals

The number of decimal places. By default, it equals to 2.

public int Decimals { get; set; }

Property Value

int

Extension

Extension without leading dot char.

public override string Extension { get; }

Property Value

string

Name

Name.

public override string Name { get; }

Property Value

string

Template

The template file, to be copied into report and filled up with Strategy, Orders and Trades sheets.

public string Template { get; }

Property Value

string

Methods

Generate(Strategy, string, CancellationToken)

To generate the report.

public override ValueTask Generate(Strategy strategy, string fileName, CancellationToken cancellationToken)

Parameters

strategy Strategy

Strategy.

fileName string

The name of the file, in which the report is generated.

cancellationToken CancellationToken

CancellationToken.

Returns

ValueTask