---
id: "P:cAlgo.API.FramesAddedEventArgs.AddedFrames"
kind: "property"
type: "T:cAlgo.API.FramesAddedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/FramesAddedEventArgs/AddedFrames/"
---

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

# FramesAddedEventArgs.AddedFrames

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

## AddedFrames

Returns the added frames.

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
public Frame[] AddedFrames {get;}
```

Python:

```python
framesAddedEventArgs.AddedFrames: list[Frame]
```

### Returns

`Frame[]` — 

### 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}, index: {1}", frame.Id, frame.Index);
}
```

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}, index: {frame.Index}")
```

