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

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

# ChartHorizontalLine.Y

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

## Y

Gets or sets the Y-axis value of the line location.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
double Y {get; set;}
```

Python:

```python
chartHorizontalLine.Y: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.Y = Bars.LowPrices.Last(10);
Print("Support line price: {0}", line.Y);
```

Python:

```python
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.Y = api.Bars.LowPrices.Last(10)
api.Print(f"Support line price: {line.Y}")
```

