---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.BullsPower(System.Int32,cAlgo.API.MovingAverageType)"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/BullsPower/"
---

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

# IIndicatorsAccessor.BullsPower

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

## BullsPower(int periods, MovingAverageType maType)

Bulls Power shows the maximum bullish strength during the time period.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
BullsPower BullsPower(int periods, MovingAverageType maType)
```

Python:

```python
api.Indicators.BullsPower(periods: int, maType: MovingAverageType) -> BullsPower
```

### Parameters

- `periods` (`int`, Python `int`): Moving Average Period
- `maType` (`MovingAverageType`, Python `MovingAverageType`): Moving Average Type

### Returns

`BullsPower` — BullsPower

### Examples

C#:

```csharp
var bullsPower = Indicators.BullsPower(13, MovingAverageType.Exponential);
Print("Bulls Power: {0}", bullsPower.Result.Last(1));
```

Python:

```python
bullsPower = api.Indicators.BullsPower(13, MovingAverageType.Exponential)
api.Print(f"Bulls Power: {bullsPower.Result.Last(1)}")
```

## BullsPower(Bars bars, int periods, MovingAverageType maType)

Bulls Power shows the maximum bullish strength during the time period.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
BullsPower BullsPower(Bars bars, int periods, MovingAverageType maType)
```

Python:

```python
api.Indicators.BullsPower(bars: Bars, periods: int, maType: MovingAverageType) -> BullsPower
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `periods` (`int`, Python `int`): Moving Average Period
- `maType` (`MovingAverageType`, Python `MovingAverageType`): Moving Average Type

### Returns

`BullsPower` — BullsPower

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyBullsPower = Indicators.BullsPower(dailyBars, 13, MovingAverageType.Exponential);
Print("Daily Bulls Power: {0}", dailyBullsPower.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyBullsPower = api.Indicators.BullsPower(dailyBars, 13, MovingAverageType.Exponential)
api.Print(f"Daily Bulls Power: {dailyBullsPower.Result.Last(1)}")
```

