---
id: "P:cAlgo.API.Internals.Algo.TimeFrame"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/TimeFrame/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Algo.TimeFrame

Member of [Algo](https://help.ctrader.com/ctrader-algo/references/General/Algo/index.md).

## TimeFrame

Access to the TimeFrame values.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public TimeFrame TimeFrame {get;}
```

Python:

```python
api.TimeFrame: TimeFrame
```

### Returns

`TimeFrame` — 

### Examples

C#:

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

Python:

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

