---
id: "P:cAlgo.API.Indicators.DirectionalMovementSystem.ADX"
kind: "property"
type: "T:cAlgo.API.Indicators.DirectionalMovementSystem"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/DirectionalMovementSystem/ADX/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# DirectionalMovementSystem.ADX

Member of [DirectionalMovementSystem](https://help.ctrader.com/ctrader-algo/references/Indicators/DirectionalMovementSystem/index.md).

## ADX

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

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries ADX {get;}
```

Python:

```python
directionalMovementSystem.ADX: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var dms = Indicators.DirectionalMovementSystem(14);
if (dms.ADX.Last(1) > 25)
    Print("The market is trending, ADX: {0}", dms.ADX.Last(1));
```

Python:

```python
dms = api.Indicators.DirectionalMovementSystem(14)
if dms.ADX.Last(1) > 25:
    api.Print(f"The market is trending, ADX: {dms.ADX.Last(1)}")
```

