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

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

# ChartArea.TopY

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

## TopY

Gets the highest visible Y-axis value.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double TopY {get;}
```

Python:

```python
chartArea.TopY: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
Print("Highest visible price: {0} | Visible range: {1}", Chart.TopY, Chart.TopY - Chart.BottomY);
```

Python:

```python
api.Print(f"Highest visible price: {api.Chart.TopY} | Visible range: {api.Chart.TopY - api.Chart.BottomY}")
```

