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

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

# Plugin.ChartTemplates

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

## ChartTemplates

Provides access to Chart Templates.

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

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public ChartTemplates ChartTemplates {get;}
```

Python:

```python
api.ChartTemplates: ChartTemplates
```

### Returns

`ChartTemplates` — 

Available since cAlgo.API 5.6.

### Examples

C#:

```csharp
Print("Default chart template: {0}", ChartTemplates.DefaultTemplate.Name);
if (!ChartTemplates.Contains("My Template"))
    ChartTemplates.Create("My Template");
```

Python:

```python
api.Print(f"Default chart template: {api.ChartTemplates.DefaultTemplate.Name}")
if not api.ChartTemplates.Contains("My Template"):
    api.ChartTemplates.Create("My Template")
```

