---
id: "E:cAlgo.API.ChartManager.FramesAdded"
kind: "event"
type: "T:cAlgo.API.ChartManager"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/ChartManager/FramesAdded/"
---

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

# ChartManager.FramesAdded

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

## FramesAdded

Occurs when new frames are added.

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
event Action<FramesAddedEventArgs> FramesAdded;
```

Python:

```python
api.ChartManager.FramesAdded += handler  # handler(obj: FramesAddedEventArgs)
```

### Returns

`Action<FramesAddedEventArgs>` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartManager.FramesAdded += OnFramesAdded;
}

private void OnFramesAdded(FramesAddedEventArgs args)
{
    foreach (var frame in args.AddedFrames)
        Print("Frame added: {0}", frame.Id);
}
```

Python:

```python
def on_start(self):
    api.ChartManager.FramesAdded += self.on_frames_added

def on_frames_added(self, args):
    for frame in args.AddedFrames:
        api.Print(f"Frame added: {frame.Id}")
```

