Skip to content

Algo.TimeFrame

property · Algo · cAlgo.API.Internals

DesktopCLICloud

Access to the TimeFrame values.

Definition

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

Returns TimeFrame

Examples

if (TimeFrame == TimeFrame.Daily)
    Print("Running on the daily time frame");
else
    Print("Current time frame: {0}", TimeFrame);
if api.TimeFrame == TimeFrame.Daily:
    api.Print("Running on the daily time frame")
else:
    api.Print(f"Current time frame: {api.TimeFrame}")