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

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

# BollingerBands.Main

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

## Main

Moving Average (Middle Bollinger Band).

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Main {get;}
```

Python:

```python
bollingerBands.Main: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — The main result.

### Examples

C#:

```csharp
var bollingerBands = Indicators.BollingerBands(Bars.ClosePrices, 20, 2, MovingAverageType.Simple);
Print("Current Main Bollinger Band's price is: {0}", bollingerBands.Main.LastValue);
```

Python:

```python
bollingerBands = api.Indicators.BollingerBands(api.Bars.ClosePrices, 20, 2, MovingAverageType.Simple)
api.Print(f"Current Main Bollinger Band's price is: {bollingerBands.Main.LastValue}")
```

