Skip to content

BacktestingSettings.DataMode

property · BacktestingSettings · cAlgo.API

DesktopCLICloud

Gets or sets the data mode used for backtesting.

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 BacktestingDataMode DataMode {get; set;}
backtestingSettings.DataMode: BacktestingDataMode

Returns BacktestingDataMode

Examples

var settings = new BacktestingSettings { DataMode = BacktestingDataMode.Ticks };
Print("Backtesting data mode: {0}", settings.DataMode);
settings = BacktestingSettings()
settings.DataMode = BacktestingDataMode.Ticks
api.Print(f"Backtesting data mode: {settings.DataMode}")