IIndicatorsAccessor.BearsPower
method · IIndicatorsAccessor · cAlgo.API.Internals
DesktopCLICloud
Bears Power shows the maximum bearish strength during the time period.
Overloads
| Signature |
|---|
BearsPower(int periods, MovingAverageType maType) |
BearsPower(Bars bars, int periods, MovingAverageType maType) |
BearsPower(int periods, MovingAverageType maType)
Bears Power shows the maximum bearish strength during the time period.
BearsPower BearsPower(int periods, MovingAverageType maType)
api.Indicators.BearsPower(periods: int, maType: MovingAverageType) -> BearsPower
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
periods | int | int | Moving Average Period |
maType | MovingAverageType | MovingAverageType | Moving Average Type |
Returns BearsPower — BearsPower
Examples
var bearsPower = Indicators.BearsPower(13, MovingAverageType.Exponential);
Print("Bears Power: {0}", bearsPower.Result.Last(1));
bearsPower = api.Indicators.BearsPower(13, MovingAverageType.Exponential)
api.Print(f"Bears Power: {bearsPower.Result.Last(1)}")
BearsPower(Bars bars, int periods, MovingAverageType maType)
Bears Power shows the maximum bearish strength during the time period.
BearsPower BearsPower(Bars bars, int periods, MovingAverageType maType)
api.Indicators.BearsPower(bars: Bars, periods: int, maType: MovingAverageType) -> BearsPower
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 BearsPower — BearsPower
Examples
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyBearsPower = Indicators.BearsPower(dailyBars, 13, MovingAverageType.Exponential);
Print("Daily Bears Power: {0}", dailyBearsPower.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyBearsPower = api.Indicators.BearsPower(dailyBars, 13, MovingAverageType.Exponential)
api.Print(f"Daily Bears Power: {dailyBearsPower.Result.Last(1)}")