ADX


Summary

The Average Directional Movement Index (ADX) indicates whether the market is trending or ranging.

Syntax

public IndicatorDataSeries ADX{ get; }

Example 1

//...
[Robot]
public class SampleRobot : Robot
//...
private DirectionalMovementSystem _dms;
protected override void Initialize()
{
    _dms = Indicators.DirectionalMovementSystem(Period);
}
//...
protected override void OnBar()
{
    Print("The Current Average Directional Movement Index is: {0}", _dms.ADX.LastValue);
}
//...