ADX Property
Summary
The Average Directional Movement Index (ADX) indicates whether the market is trending or ranging.
Signature
| public abstract IndicatorDataSeries ADX {get;}
|
Return Value
IndicatorDataSeries
Declaring Type
cAlgo.API.Indicators.DirectionalMovementSystem
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | //...
[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);
}
//...
|
Last update: March 17, 2023