Skip to content

BacktestProgressMonitor

QuantConnect.Lean.Engine.Results.BacktestProgressMonitor

BacktestProgressMonitor(
    time_keeper: ITimeKeeper,
    end_utc_time: Union[datetime, date],
)

Bases: Object

Monitors and reports the progress of a backtest

Creates a new instance

Parameters:

Name Type Description Default
time_keeper ITimeKeeper

The time keeper to use

required
end_utc_time Union[datetime, date]

The end UTC time

required

total_days

total_days: int

Gets the total days the algorithm will run

processed_days

processed_days: int

Gets the current days the algorithm has been running for

progress

progress: float

Gets the current progress of the backtest

invalidate_processed_days

invalidate_processed_days() -> None

Invalidates the processed days count value so it gets recalculated next time it is needed