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

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

# IndicatorBars.OpenPrices

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

## OpenPrices

Gets the Open price bars data.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DataSeries OpenPrices {get;}
```

Python:

```python
indicatorBars.OpenPrices: 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("Last output open price: {0}", Result.OpenPrices.LastValue);
    }
}
```

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"Last output open price: {api.Result.OpenPrices.LastValue}")
```

config.json:

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

