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

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

# ChartIcon.Color

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

## Color

Gets or sets the color of the icon.

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
Color Color {get; set;}
```

Python:

```python
chartIcon.Color: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var icon = Chart.DrawIcon("signal", ChartIconType.UpArrow, Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Green);
icon.Color = Color.Gold;
Print("Icon color: {0}", icon.Color);
```

Python:

```python
icon = api.Chart.DrawIcon("signal", ChartIconType.UpArrow, api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Green)
icon.Color = Color.Gold
api.Print(f"Icon color: {icon.Color}")
```

