Skip to content

IIndicatorsAccessor.BullsPower

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

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

Overloads

BullsPower(int periods, MovingAverageType maType)

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

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

Parameters

Name C# type Python type Description
periods int int Moving Average Period
maType MovingAverageType MovingAverageType Moving Average Type

Returns BullsPower — BullsPower

Examples

var bullsPower = Indicators.BullsPower(13, MovingAverageType.Exponential);
Print("Bulls Power: {0}", bullsPower.Result.Last(1));
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.

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

Parameters

Name C# type Python type Description
bars Bars Bars The Bars that will be used by indicator, you can pass another timeframe/symbol bars
periods int int Moving Average Period
maType MovingAverageType MovingAverageType Moving Average Type

Returns BullsPower — BullsPower

Examples

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