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

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

# PriceAlertRemovedEventArgs (class)

Provides data for the price alert removed event.

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

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

## Definition

```csharp
public class PriceAlertRemovedEventArgs
```

Available since cAlgo.API 5.2.

## Examples

C#:

```csharp
protected override void OnStart()
{
    PriceAlerts.Removed += OnPriceAlertsRemoved;
}

private void OnPriceAlertsRemoved(PriceAlertRemovedEventArgs args)
{
    Print("Price alert {0} for {1} removed", args.PriceAlert.Id, args.PriceAlert.Symbol.Name);
}
```

Python:

```python
def on_start(self):
    api.PriceAlerts.Removed += self.on_price_alerts_removed

def on_price_alerts_removed(self, args):
    api.Print(f"Price alert {args.PriceAlert.Id} for {args.PriceAlert.Symbol.Name} removed")
```

## Properties

- `public PriceAlert PriceAlert {get;}` — Gets removed price alert. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/PriceAlertRemovedEventArgs/PriceAlert/index.md)

