---
id: "E:cAlgo.API.ChartIndicators.IndicatorAdded"
kind: "event"
type: "T:cAlgo.API.ChartIndicators"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Indicators/ChartIndicators/IndicatorAdded/"
---

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

# ChartIndicators.IndicatorAdded

Member of [ChartIndicators](https://help.ctrader.com/ctrader-algo/references/Chart/Indicators/ChartIndicators/index.md).

## IndicatorAdded

Occurs when a new indicator is added to a chart.

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

- Cloud: Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.

C#:

```csharp
event Action<ChartIndicatorAddedEventArgs> IndicatorAdded;
```

Python:

```python
api.ChartIndicators.IndicatorAdded += handler  # handler(obj: ChartIndicatorAddedEventArgs)
```

### Returns

`Action<ChartIndicatorAddedEventArgs>` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    ChartIndicators.IndicatorAdded += OnIndicatorAdded;
}

private void OnIndicatorAdded(ChartIndicatorAddedEventArgs args)
{
    Print("Indicator added: {0}", args.Indicator.Name);
}
```

Python:

```python
def on_start(self):
    api.ChartIndicators.IndicatorAdded += self.on_indicator_added

def on_indicator_added(self, args):
    api.Print(f"Indicator added: {args.Indicator.Name}")
```

