BacktestingMinMaxTime
struct cAlgo.API Since 5.3
DesktopCLICloud
Represents minimum and maximum time of available data for a TimeFrame Symbol on a back testing 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 sealed struct BacktestingMinMaxTime : ValueType
Namespace: cAlgo.API · Group: DataSource
Examples
var minMaxTime = new BacktestingMinMaxTime(new DateTime(2024, 1, 1, 0, 0, 0, DateTimeKind.Utc), Server.Time);
Print("Data available from {0} to {1}", minMaxTime.MinTime, minMaxTime.MaxTime);
from System import DateTime, DateTimeKind
minMaxTime = BacktestingMinMaxTime(DateTime(2024, 1, 1, 0, 0, 0, DateTimeKind.Utc), api.Server.Time)
api.Print(f"Data available from {minMaxTime.MinTime} to {minMaxTime.MaxTime}")
Constructors
| Name | Description |
|---|---|
| BacktestingMinMaxTimeDesktopCLICloud | Represents minimum and maximum time of available data for a TimeFrame Symbol on a back testing data source. |
Properties
| Name | Description |
|---|---|
MaxTimeDesktopCLICloudDateTime | Maximum Time |
MinTimeDesktopCLICloudDateTime | Minimum Time |