BacktestingSettings.EndTimeUtc
property · BacktestingSettings · cAlgo.API
DesktopCLICloud
Gets or sets the end time in UTC for the backtesting period.
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 DateTime EndTimeUtc {get; set;}
backtestingSettings.EndTimeUtc: DateTime
Returns DateTime
Examples
var settings = new BacktestingSettings { EndTimeUtc = Server.TimeInUtc.Date };
Print("Backtesting ends at {0:u}", settings.EndTimeUtc);
settings = BacktestingSettings()
settings.EndTimeUtc = api.Server.TimeInUtc.Date
api.Print(f"Backtesting ends at {settings.EndTimeUtc}")