---
id: "P:cAlgo.API.Indicators.BollingerBands.Top"
kind: "property"
type: "T:cAlgo.API.Indicators.BollingerBands"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/BollingerBands/Top/"
---

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

# BollingerBands.Top

Member of [BollingerBands](https://help.ctrader.com/ctrader-algo/references/Indicators/BollingerBands/index.md).

## Top

Upper Bollinger Band.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Top {get;}
```

Python:

```python
bollingerBands.Top: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — The Upper Bollinger Band result.

### Examples

C#:

```csharp
var bollingerBands = Indicators.BollingerBands(Bars.ClosePrices, 20, 2, MovingAverageType.Simple);
if (Bars.HighPrices.Last(1) >= bollingerBands.Top.Last(1))
    Print("The last bar touched the Top band at {0}", bollingerBands.Top.Last(1));
```

Python:

```python
bollingerBands = api.Indicators.BollingerBands(api.Bars.ClosePrices, 20, 2, MovingAverageType.Simple)
if api.Bars.HighPrices.Last(1) >= bollingerBands.Top.Last(1):
    api.Print(f"The last bar touched the Top band at {bollingerBands.Top.Last(1)}")
```

