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

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

# IndicatorBars.HighPrices

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

## HighPrices

Gets the High price bars data.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DataSeries HighPrices {get;}
```

Python:

```python
indicatorBars.HighPrices: 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("Highest output high of 20 bars: {0}", Result.HighPrices.Maximum(20));
    }
}
```

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"Highest output high of 20 bars: {Functions.Maximum(api.Result.HighPrices, 20)}")
```

config.json:

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

