Skip to content

BacktestingDataSourceDataType

enum cAlgo.API Since 5.3

DesktopCLICloud

Specifies the different data types for backtesting data source.

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 BacktestingDataSourceDataType

Namespace: cAlgo.API · Group: DataSource

Examples

var supportedDataTypes = BacktestingDataSourceDataType.Tick | BacktestingDataSourceDataType.M1OpenPrices;
Print("Supports ticks: {0}", supportedDataTypes.HasFlag(BacktestingDataSourceDataType.Tick));
supportedDataTypes = BacktestingDataSourceDataType.Tick | BacktestingDataSourceDataType.M1OpenPrices
api.Print(f"Supports ticks: {supportedDataTypes.HasFlag(BacktestingDataSourceDataType.Tick)}")

Values

Name Value Description
Tick 1 Tick data type.
M1OpenPrices 2 Minute OHLCV open prices.
OpenPrices 4 TimeFrame OHLCV open prices.

See also