BacktestingSettings.StartTimeUtc
property · BacktestingSettings · cAlgo.API
DesktopCLICloud
Gets or sets the start 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 StartTimeUtc {get; set;}
backtestingSettings.StartTimeUtc: DateTime
Returns DateTime
Examples
var settings = new BacktestingSettings { StartTimeUtc = Server.TimeInUtc.AddMonths(-3) };
Print("Backtesting starts at {0:u}", settings.StartTimeUtc);
settings = BacktestingSettings()
settings.StartTimeUtc = api.Server.TimeInUtc.AddMonths(-3)
api.Print(f"Backtesting starts at {settings.StartTimeUtc}")