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

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

# TimeFrameManager.Favorite

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

## Favorite

Provides access to Favorite TimeFrames API.

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
FavoriteTimeFrames Favorite {get;}
```

Python:

```python
api.TimeFrameManager.Favorite: FavoriteTimeFrames
```

### Returns

`FavoriteTimeFrames` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
foreach (var timeFrame in TimeFrameManager.Favorite)
    Print("Favorite time frame: {0}", timeFrame.Name);
```

Python:

```python
for timeFrame in api.TimeFrameManager.Favorite:
    api.Print(f"Favorite time frame: {timeFrame.Name}")
```

