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

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

# ChartIndicatorAddedEventArgs (class)

The class representing `AddedEventArgs` for a `ChildIndicator`.

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

- Cloud: Never raised in the cloud: the events that pass it never fire there (ChartIndicators.IndicatorAdded).

## Definition

```csharp
public class ChartIndicatorAddedEventArgs : ChartIndicatorEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.Indicators.IndicatorAdded += OnChartIndicatorAdded;
}

private void OnChartIndicatorAdded(ChartIndicatorAddedEventArgs args)
{
    Print("Indicator {0} added to the chart, panel index: {1}", args.Indicator.Name, args.Indicator.PanelIndex);
}
```

Python:

```python
def on_start(self):
    api.Chart.Indicators.IndicatorAdded += self.on_chart_indicator_added

def on_chart_indicator_added(self, args):
    api.Print(f"Indicator {args.Indicator.Name} added to the chart, panel index: {args.Indicator.PanelIndex}")
```

## Inherited members

- `public ChartIndicator Indicator {get;}` (from ChartIndicatorEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartIndicatorEventArgs/Indicator/index.md)

