---
id: "P:cAlgo.API.IndicatorDataSeries.Item(System.Int32)"
kind: "property"
type: "T:cAlgo.API.IndicatorDataSeries"
url: "https://help.ctrader.com/ctrader-algo/references/Collections/DataSeries/IndicatorDataSeries/Item/"
---

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

# IndicatorDataSeries.Item

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

## Item

Gets or sets the value at the specified index.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double Item {get; set;}
```

Python:

```python
indicatorDataSeries[index: int] -> float
```

### Parameters

- `index` (`int`, Python `int`):

### Returns

`double` — 

### Examples

C#:

```csharp
public partial class BarRange : Indicator
{
    public override void Calculate(int index)
    {
        Result[index] = Bars.HighPrices[index] - Bars.LowPrices[index];

        if (index > 0 && Result[index] > Result[index - 1] * 2)
            Print("Bar range doubled at index {0}", index);
    }
}
```

Python:

```python
def calculate(self, index):
    api.Result[index] = api.Bars.HighPrices[index] - api.Bars.LowPrices[index]
    if index > 0 and api.Result[index] > api.Result[index - 1] * 2:
        api.Print(f"Bar range doubled at index {index}")
```

config.json:

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

