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

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

# PriceAlertRemovedEventArgs.PriceAlert

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

## PriceAlert

Gets removed price alert.

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

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

C#:

```csharp
public PriceAlert PriceAlert {get;}
```

Python:

```python
priceAlertRemovedEventArgs.PriceAlert: PriceAlert
```

### Returns

`PriceAlert` — 

Available since cAlgo.API 5.2.

### Examples

C#:

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

private void OnPriceAlertsRemoved(PriceAlertRemovedEventArgs args)
{
    Print("Removed alert was at {0}, alerts left: {1}", args.PriceAlert.Price, PriceAlerts.Count);
}
```

Python:

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

def on_price_alerts_removed(self, args):
    api.Print(f"Removed alert was at {args.PriceAlert.Price}, alerts left: {api.PriceAlerts.Count}")
```

