Skip to content

BaseResultsAnalysis

QuantConnect.Lean.Engine.Results.Analysis.Analyses.BaseResultsAnalysis

Bases: Object

Abstract base class for all backtest diagnostic tests.

issue

issue: str

Gets a short (3–8 word) description of why the analysis was triggered.

weight

weight: int

Gets the severity/impact weight (0–100). Higher values run first and rank higher in results.

create_aggregated_response

create_aggregated_response(
    responses: List[Analysis],
) -> Sequence[Analysis]

Filters responses to those with solutions, prefixes the class name, and returns a flat list.

This codeEntityType is protected.

single_response

single_response(
    sample: Any, solutions: Sequence[str] = None
) -> Sequence[Analysis]
single_response(
    sample: Any,
    count: Optional[int],
    solutions: Sequence[str] = None,
) -> Sequence[Analysis]

Wraps a single QuantConnect.Analysis in a one-element read-only list.

format_code

format_code(code: str, language: Language) -> str

Formats the specified code string according to the conventions of the given programming language.

This codeEntityType is protected.

run

run(
    parameters: ResultsAnalysisRunParameters,
) -> Sequence[Analysis]

Runs the analysis against all backtest data provided in parameters.