Skip to content

IIndicatorsAccessor.EaseOfMovement

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

The Ease Of Movement indicator relates the price change to the volume.

Overloads

EaseOfMovement(int periods, MovingAverageType maType)

The Ease Of Movement indicator relates the price change to the volume.

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

Parameters

Name C# type Python type Description
periods int int The period used for the calculation
maType MovingAverageType MovingAverageType The moving average type used for the calculation

Returns EaseOfMovement — Ease Of Movement indicator instance

Examples

var easeOfMovement = Indicators.EaseOfMovement(14, MovingAverageType.Simple);
Print("Ease Of Movement: {0}", easeOfMovement.Result.Last(1));
easeOfMovement = api.Indicators.EaseOfMovement(14, MovingAverageType.Simple)
api.Print(f"Ease Of Movement: {easeOfMovement.Result.Last(1)}")

EaseOfMovement(Bars bars, int periods, MovingAverageType maType)

The Ease Of Movement indicator relates the price change to the volume.

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

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 The period used for the calculation
maType MovingAverageType MovingAverageType The moving average type used for the calculation

Returns EaseOfMovement — Ease Of Movement indicator instance

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyEaseOfMovement = Indicators.EaseOfMovement(dailyBars, 14, MovingAverageType.Simple);
Print("Daily Ease Of Movement: {0}", dailyEaseOfMovement.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyEaseOfMovement = api.Indicators.EaseOfMovement(dailyBars, 14, MovingAverageType.Simple)
api.Print(f"Daily Ease Of Movement: {dailyEaseOfMovement.Result.Last(1)}")