---
id: "E:cAlgo.API.PriceAlerts.Added"
kind: "event"
type: "T:cAlgo.API.PriceAlerts"
url: "https://help.ctrader.com/ctrader-algo/references/PriceAlert/PriceAlerts/Added/"
---

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

# PriceAlerts.Added

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

## Added

Occurs when a new price alert is added.

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

- Cloud: Always empty: Count 0, Find null, FindAll empty, Remove false. Added/Removed/Updated/Triggered never raised.

C#:

```csharp
event Action<PriceAlertAddedEventArgs> Added;
```

Python:

```python
api.PriceAlerts.Added += handler  # handler(obj: PriceAlertAddedEventArgs)
```

### Returns

`Action<PriceAlertAddedEventArgs>` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
protected override void OnStart()
{
    PriceAlerts.Added += OnPriceAlertAdded;
}

private void OnPriceAlertAdded(PriceAlertAddedEventArgs args)
{
    Print("Price alert added: {0} at {1}", args.PriceAlert.Symbol.Name, args.PriceAlert.Price);
}
```

Python:

```python
def on_start(self):
    api.PriceAlerts.Added += self.on_price_alert_added

def on_price_alert_added(self, args):
    api.Print(f"Price alert added: {args.PriceAlert.Symbol.Name} at {args.PriceAlert.Price}")
```

