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

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

# ChartActivationChangedEventArgs.Chart

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

## Chart

The chart that event belongs to

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

- CLI: Never raised in the CLI: the events that pass it never fire there (Chart.Activated, Chart.Deactivated).
- Cloud: Never raised in the cloud: the events that pass it never fire there (Chart.Activated, Chart.Deactivated).

C#:

```csharp
public Chart Chart {get;}
```

Python:

```python
chartActivationChangedEventArgs.Chart: Chart
```

### Returns

`Chart` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.Activated += OnChartActivated;
}

private void OnChartActivated(ChartActivationChangedEventArgs args)
{
    Print("Activated chart: {0} {1}", args.Chart.SymbolName, args.Chart.TimeFrame);
}
```

Python:

```python
def on_start(self):
    api.Chart.Activated += self.on_chart_activated

def on_chart_activated(self, args):
    api.Print(f"Activated chart: {args.Chart.SymbolName} {args.Chart.TimeFrame}")
```

