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

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

# ChartFrameLinkedChartGroupChangedEventArgs.ChartFrame

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

## ChartFrame

Returns the chart frame.

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

Python:

```python
chartFrameLinkedChartGroupChangedEventArgs.ChartFrame: ChartFrame
```

### Returns

`ChartFrame` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var chartFrame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
    chartFrame.LinkedChartGroupChanged += OnLinkedChartGroupChanged;
}

private void OnLinkedChartGroupChanged(ChartFrameLinkedChartGroupChangedEventArgs args)
{
    var chartFrame = args.ChartFrame;
    Print("{0} {1} chart is now in group {2}", chartFrame.Symbol.Name, chartFrame.TimeFrame, chartFrame.LinkedChartGroup);
}
```

Python:

```python
def on_start(self):
    chart_frame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
    chart_frame.LinkedChartGroupChanged += self.on_linked_chart_group_changed

def on_linked_chart_group_changed(self, args):
    chart_frame = args.ChartFrame
    api.Print(f"{chart_frame.Symbol.Name} {chart_frame.TimeFrame} chart is now in group {chart_frame.LinkedChartGroup}")
```

