Skip to content

Plugin.TimeFrames

property · Plugin · cAlgo.API Since 5.3

DesktopCLICloud

Gets collection of available TimeFrames.

Environment behaviour

CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.

Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.

Definition

public TimeFrames TimeFrames {get;}
api.TimeFrames: TimeFrames

Returns TimeFrames

Examples

foreach (var timeFrame in TimeFrames)
    Print("Time frame: {0}", timeFrame.Name);
for timeFrame in api.TimeFrames:
    api.Print(f"Time frame: {timeFrame.Name}")