BacktestingProgressChangedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the backtesting progress changed event.
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 class BacktestingProgressChangedEventArgs
Namespace: cAlgo.API · Group: Backtesting
Examples
protected override void OnStart()
{
Backtesting.ProgressChanged += OnBacktestingProgressChanged;
}
private void OnBacktestingProgressChanged(BacktestingProgressChangedEventArgs args)
{
Print("{0:F1}% {1}, completed: {2}", args.Progress, args.Operation, args.Process.IsCompleted);
}
def on_start(self):
api.Backtesting.ProgressChanged += self.on_backtesting_progress_changed
def on_backtesting_progress_changed(self, args):
api.Print(f"{args.Progress:.1f}% {args.Operation}, completed: {args.Process.IsCompleted}")
Properties
| Name | Description |
|---|---|
OperationDesktopCLICloudstring | Gets the description of the current operation. |
ProcessDesktopCLICloudBacktestingProcess | Gets the backtesting process that reported progress. |
ProgressDesktopCLIClouddouble | Gets the progress percentage of the backtesting process. |