---
id: "T:cAlgo.API.ChartFrameLinkedChartGroupChangedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartFrameLinkedChartGroupChangedEventArgs/"
---

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

# ChartFrameLinkedChartGroupChangedEventArgs (class)

Provides data for the chart frame LinkedChartGroup changed event.

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.

## Definition

```csharp
public class ChartFrameLinkedChartGroupChangedEventArgs
```

## Examples

C#:

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

private void OnLinkedChartGroupChanged(ChartFrameLinkedChartGroupChangedEventArgs args)
{
    Print("Chart frame {0} linked chart group changed to {1}", args.ChartFrame.Id, args.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):
    api.Print(f"Chart frame {args.ChartFrame.Id} linked chart group changed to {args.ChartFrame.LinkedChartGroup}")
```

## Properties

- `public ChartFrame ChartFrame {get;}` — Returns the chart frame. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartFrameLinkedChartGroupChangedEventArgs/ChartFrame/index.md)

