---
id: "P:cAlgo.API.ChartDraggables.Count"
kind: "property"
type: "T:cAlgo.API.ChartDraggables"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Draggables/ChartDraggables/Count/"
---

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

# ChartDraggables.Count

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

## Count

Gets count of draggables.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Add returns a draggable that is never displayed; Remove sends nothing to any chart.
- Cloud: Add returns a draggable that is never displayed; Remove sends nothing to any chart.

C#:

```csharp
int Count {get;}
```

Python:

```python
chartDraggables.Count: int
```

### Returns

`int` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
Print("Draggables on the chart: {0}", Chart.Draggables.Count);
foreach (var draggable in Chart.Draggables)
    Print("Draggable {0} at {1}, {2}", draggable.Id, draggable.X, draggable.Y);
```

Python:

```python
api.Print(f"Draggables on the chart: {api.Chart.Draggables.Count}")
for draggable in api.Chart.Draggables:
    api.Print(f"Draggable {draggable.Id} at {draggable.X}, {draggable.Y}")
```

