---
id: "P:cAlgo.API.IndicatorBars.TickVolumes"
kind: "property"
type: "T:cAlgo.API.IndicatorBars"
url: "https://help.ctrader.com/ctrader-algo/references/Collections/DataSeries/IndicatorBars/TickVolumes/"
---

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

# IndicatorBars.TickVolumes

Member of [IndicatorBars](https://help.ctrader.com/ctrader-algo/references/Collections/DataSeries/IndicatorBars/index.md).

## TickVolumes

Gets the Tick volumes data.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DataSeries TickVolumes {get;}
```

Python:

```python
indicatorBars.TickVolumes: DataSeries
```

### Returns

`DataSeries` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
public partial class BarsCopy : Indicator
{
    public override void Calculate(int index)
    {
        var bar = Bars[index];
        Result[index] = new OhlcvBar(bar.Open, bar.High, bar.Low, bar.Close, bar.TickVolume);
        if (IsLastBar)
            Print("Tick volume of the last 10 output bars: {0}", Result.TickVolumes.Sum(10));
    }
}
```

Python:

```python
def calculate(self, index):
    bar = api.Bars[index]
    api.Result[index] = OhlcvBar(bar.Open, bar.High, bar.Low, bar.Close, bar.TickVolume)
    if api.IsLastBar:
        api.Print(f"Tick volume of the last 10 output bars: {Functions.Sum(api.Result.TickVolumes, 10)}")
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": false,
  "BarOutputs": [
    {
      "Name": "Result",
      "DisplayName": "Main"
    }
  ]
}
```

