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

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

# ChartTemplateDisplaySettings.PriceAlerts

Member of [ChartTemplateDisplaySettings](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateDisplaySettings/index.md).

## PriceAlerts

Defines if the Price Alerts are visible on the chart.

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

- Cloud: Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.DisplaySettings).

C#:

```csharp
bool PriceAlerts {get; set;}
```

Python:

```python
chartTemplateDisplaySettings.PriceAlerts: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.6.

### Examples

C#:

```csharp
var template = ChartTemplates.Get("My Template");
if (template != null)
{
    template.DisplaySettings.PriceAlerts = true;
    Print("Template shows price alerts: {0}", template.DisplaySettings.PriceAlerts);
}
```

Python:

```python
template = api.ChartTemplates.Get("My Template")
if template is not None:
    template.DisplaySettings.PriceAlerts = True
    api.Print(f"Template shows price alerts: {template.DisplaySettings.PriceAlerts}")
```

