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

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

# TimeFrameManager.Custom

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

## Custom

Provides access to Custom 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
CustomTimeFrames Custom {get;}
```

Python:

```python
api.TimeFrameManager.Custom: CustomTimeFrames
```

### Returns

`CustomTimeFrames` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var customTimeFrame = TimeFrameManager.Custom.Get("My Custom TF") ?? TimeFrameManager.Custom.Add("My Custom TF");
Print("Custom time frame: {0}", customTimeFrame.Name);
```

Python:

```python
customTimeFrame = api.TimeFrameManager.Custom.Get("My Custom TF")
if customTimeFrame is None:
    customTimeFrame = api.TimeFrameManager.Custom.Add("My Custom TF")
api.Print(f"Custom time frame: {customTimeFrame.Name}")
```

