---
id: "P:cAlgo.API.ChartFrame.TimeFrame"
kind: "property"
type: "T:cAlgo.API.ChartFrame"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartFrame/TimeFrame/"
---

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

# ChartFrame.TimeFrame

Member of [ChartFrame](https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartFrame/index.md).

## TimeFrame

Get / set frame chart timeframe.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
TimeFrame TimeFrame {get; set;}
```

Python:

```python
chartFrame.TimeFrame: TimeFrame
```

### Returns

`TimeFrame` — 

### Examples

C#:

```csharp
var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
chartFrame.TimeFrame = TimeFrame.Hour4;
Print("Chart time frame: {0}", chartFrame.TimeFrame);
```

Python:

```python
chartFrame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
chartFrame.TimeFrame = TimeFrame.Hour4
api.Print(f"Chart time frame: {chartFrame.TimeFrame}")
```

