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

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

# PriceAlerts.Count

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

## Count

Gets the total number of active price alerts.

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
int Count {get;}
```

Python:

```python
api.PriceAlerts.Count: int
```

### Returns

`int` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
Print("Active price alerts: {0}", PriceAlerts.Count);
```

Python:

```python
api.Print(f"Active price alerts: {api.PriceAlerts.Count}")
```

