BacktestingProgressChangedEventArgs.Operation
property · BacktestingProgressChangedEventArgs · cAlgo.API
DesktopCLICloud
Gets the description of the current operation.
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 string Operation {get;}
backtestingProgressChangedEventArgs.Operation: str
Returns string
Examples
protected override void OnStart()
{
Backtesting.ProgressChanged += OnBacktestingProgressChanged;
}
private void OnBacktestingProgressChanged(BacktestingProgressChangedEventArgs args)
{
Print("Current backtesting operation: {0}", args.Operation);
}
def on_start(self):
api.Backtesting.ProgressChanged += self.on_backtesting_progress_changed
def on_backtesting_progress_changed(self, args):
api.Print(f"Current backtesting operation: {args.Operation}")