BacktestingProgressChangedEventArgs.Progress
property · BacktestingProgressChangedEventArgs · cAlgo.API
DesktopCLICloud
Gets the progress percentage of the backtesting process.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public double Progress {get;}
backtestingProgressChangedEventArgs.Progress: float
Returns double
Examples
protected override void OnStart()
{
Backtesting.ProgressChanged += OnBacktestingProgressChanged;
}
private void OnBacktestingProgressChanged(BacktestingProgressChangedEventArgs args)
{
Print("Backtesting progress: {0:F1}%", args.Progress);
}
def on_start(self):
api.Backtesting.ProgressChanged += self.on_backtesting_progress_changed
def on_backtesting_progress_changed(self, args):
api.Print(f"Backtesting progress: {args.Progress:.1f}%")