Skip to content

BacktestingCompletedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for the backtesting completed 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 BacktestingCompletedEventArgs

Namespace: cAlgo.API · Group: Backtesting

Examples

protected override void OnStart()
{
    Backtesting.Completed += OnBacktestingCompleted;
}

private void OnBacktestingCompleted(BacktestingCompletedEventArgs args)
{
    Print("Backtesting completed with error {0}, has HTML report: {1}", args.Process.BacktestingError, args.HtmlReport != null);
}
def on_start(self):
    api.Backtesting.Completed += self.on_backtesting_completed

def on_backtesting_completed(self, args):
    api.Print(f"Backtesting completed with error {args.Process.BacktestingError}, has HTML report: {args.HtmlReport is not None}")

Properties

Name Description
HtmlReportDesktopCLICloudstring Gets the HTML report of the backtesting results.
JsonReportDesktopCLICloudstring Gets the JSON report of the backtesting results.
ProcessDesktopCLICloudBacktestingProcess Gets the backtesting process that has completed.

See also