EaseOfMovement


Summary

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

Syntax

public EaseOfMovement EaseOfMovement(int periods, MovingAverageType maType)
public EaseOfMovement EaseOfMovement(MarketSeries marketSeries, int periods, MovingAverageType maType)

Parameters

NameDescription

Example 1

private EaseOfMovement _easeOfMovement;
[Parameter("Period", DefaultValue = 14)]
public int Period { get; set; }
[Parameter("MA Type", DefaultValue = MovingAverageType.Simple)]
public MovingAverageType MAType { get; set; }
protected override void OnStart()
{
   _easeOfMovement = Indicators.EaseOfMovement(Period, MAType);
}
protected override void OnBar()
{
   // get EaseOfMovement value
   var index = MarketSeries.Open.Count - 1;
   double currentEaseOfMovement = _easeOfMovement.Result[index];
   double previousEaseOfMovement = _easeOfMovement.Result[index-1];
}