---
id: "T:cAlgo.API.PriceAlertCondition"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/PriceAlert/PriceAlertCondition/"
---

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

# PriceAlertCondition (enum)

Represents the price alert conditions.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum PriceAlertCondition
```

Available since cAlgo.API 5.2.

## Examples

C#:

```csharp
var resistance = Bars.HighPrices.Maximum(50);
PriceAlerts.Add(Symbol, resistance, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual);
Print("Alert added for a breakout above {0}", resistance);
```

Python:

```python
resistance = Functions.Maximum(api.Bars.HighPrices, 50)
api.PriceAlerts.Add(api.Symbol, resistance, PriceAlertQuoteType.Bid, PriceAlertCondition.HigherOrEqual)
api.Print(f"Alert added for a breakout above {resistance}")
```

## Values

- `PriceAlertCondition.HigherOrEqual` — Price alert will be triggered if symbol price is above or equal than alert price.
- `PriceAlertCondition.LowerOrEqual` — Price alert will be triggered if symbol price is lower or equal than alert price.

