---
id: "T:cAlgo.API.ChartIconType"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartIconType/"
---

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

# ChartIconType (enum)

Represents the type of the Icon.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum ChartIconType
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This example shows how to use the Chart ChartIconType
    public partial class ChartIconTypeSample : Indicator
    {
        protected override void Initialize()
        {
            Chart.DrawIcon("Icon", IconType, Chart.LastVisibleBarIndex, Chart.Bars.LastBar.Low, Color.Red);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Chart.DrawIcon("Icon", api.IconType, api.Chart.LastVisibleBarIndex, api.Chart.Bars.LastBar.Low, Color.Red)
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true,
  "Parameters": [
    {
      "Name": "IconType",
      "DisplayName": "Icon Type",
      "Type": "Enum",
      "EnumTypeFullName": "cAlgo.API.ChartIconType",
      "DefaultValue": "DownArrow"
    }
  ]
}
```

## Values

- `ChartIconType.UpArrow` — The Up Arrow icon.
- `ChartIconType.DownArrow` — The Down Arrow icon.
- `ChartIconType.Circle` — The Circle icon.
- `ChartIconType.Square` — The Square icon.
- `ChartIconType.Diamond` — The Diamond icon.
- `ChartIconType.Star` — The Star icon.
- `ChartIconType.UpTriangle` — The Up Triangle icon.
- `ChartIconType.DownTriangle` — The Down Triangle icon.

