Skip to content

IIndicatorsAccessor.ElderForceIndex

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

Elder's Force Index measures the amount of power used to move the price of an asset.

Overloads

ElderForceIndex(int periods, MovingAverageType maType)

Elder's Force Index measures the amount of power used to move the price of an asset.

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

Parameters

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

Returns ElderForceIndex — ElderForceIndex

Examples

var forceIndex = Indicators.ElderForceIndex(13, MovingAverageType.Exponential);
Print("Elder Force Index: {0}", forceIndex.Result.Last(1));
forceIndex = api.Indicators.ElderForceIndex(13, MovingAverageType.Exponential)
api.Print(f"Elder Force Index: {forceIndex.Result.Last(1)}")

ElderForceIndex(Bars bars, int periods, MovingAverageType maType)

Elder's Force Index measures the amount of power used to move the price of an asset.

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

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 ElderForceIndex — ElderForceIndex

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyForceIndex = Indicators.ElderForceIndex(dailyBars, 13, MovingAverageType.Exponential);
Print("Daily Elder Force Index: {0}", dailyForceIndex.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyForceIndex = api.Indicators.ElderForceIndex(dailyBars, 13, MovingAverageType.Exponential)
api.Print(f"Daily Elder Force Index: {dailyForceIndex.Result.Last(1)}")