BacktestingDataMode
enum cAlgo.API
DesktopCLICloud
Specifies 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 enum BacktestingDataMode
Namespace: cAlgo.API · Group: Backtesting
Examples
var settings = new BacktestingSettings
{
StartTimeUtc = new DateTime(2025, 1, 1),
EndTimeUtc = new DateTime(2025, 1, 15),
Balance = 10000,
DataMode = BacktestingDataMode.Ticks
};
Print("Backtesting data mode: {0}", settings.DataMode);
settings = BacktestingSettings()
settings.Balance = 10000
settings.DataMode = BacktestingDataMode.Ticks
api.Print(f"Backtesting data mode: {settings.DataMode}")
Values
| Name | Value | Description |
|---|---|---|
Ticks | 0 | Tick data mode. |
M1 | 1 | One-minute data mode. |
M1Csv | 2 | One-minute CSV data mode. |
OpenPrices | 3 | Open prices data mode. |
TickCsv | 4 | Tick data from a CSV file. |