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

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

# ChartIcon.IconType

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

## IconType

Gets or sets the type 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
ChartIconType IconType {get; set;}
```

Python:

```python
chartIcon.IconType: ChartIconType
```

### Returns

`ChartIconType` — 

### Examples

C#:

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

Python:

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

