Skip to content

ResultsAnalysisRunParameters

QuantConnect.Lean.Engine.Results.Analysis.ResultsAnalysisRunParameters

ResultsAnalysisRunParameters(
    result: Result,
    algorithm: QCAlgorithm,
    language: Language,
    logs: Sequence[str],
    equity_curve: SortedList[datetime, float],
    benchmark_equity_curve: SortedList[datetime, float],
)

Bases: Object

Bundles all dependencies that a Analyses.BaseResultsAnalysis may need, so every analysis shares a single Run(ResultsAnalysisRunContext) entry point.

Initializes a new instance of the ResultsAnalysisRunParameters class with the specified dependencies.

result

result: Result

The backtest result being analysed.

algorithm

algorithm: QCAlgorithm

The algorithm instance used for history requests and API queries.

language

language: Language

The programming language the algorithm is written in.

logs

logs: Sequence[str]

The full list of log lines produced by the backtest.

equity_curve

equity_curve: SortedList[datetime, float]

Daily equity values for the strategy, keyed by date.

benchmark_equity_curve

benchmark_equity_curve: SortedList[datetime, float]

Daily equity values for the benchmark (SPY), keyed by date.