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

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

# ChartIcon.Y

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

## Y

Gets or sets the Y-axis value of the icon 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
chartIcon.Y: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var icon = Chart.DrawIcon("signal", ChartIconType.UpArrow, Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Green);
icon.Y = Bars.LowPrices.LastValue - 5 * Symbol.PipSize;
Print("Icon price: {0}", icon.Y);
```

Python:

```python
icon = api.Chart.DrawIcon("signal", ChartIconType.UpArrow, api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Green)
icon.Y = api.Bars.LowPrices.LastValue - 5 * api.Symbol.PipSize
api.Print(f"Icon price: {icon.Y}")
```

