# Average Directional Movement Rating (ADXR)

#### Description <a href="#description_5" id="description_5"></a>

The ADXR is the ADX indicator plus the ADX from n days ago divided by 2. Written as an equation, it looks like this: (current ADX + ADX n days ago) / 2.

#### Interpretation <a href="#interpretation_5" id="interpretation_5"></a>

The oscillator moves along a guiding line that typically has a value of 20. When the ADXR rises above 20, a trend exists. If the ADXR is below 20, no trend exists and the market is moving sideways. Welles Wilder recommends buying into the market at a value of 25 and higher, and holding the position as long as the value remains above 20.

#### Usage <a href="#usage_5" id="usage_5"></a>

```csharp
ADXR(int interval, int period)
ADXR(IDataSeries inSeries, int interval, int period)
ADXR(int interval, int period)[int barsAgo]
ADXR(IDataSeries inSeries, int interval, int period)[int barsAgo]
```

#### Return value <a href="#return-value_5" id="return-value_5"></a>

**double**

When using this method with an index (e.g. **ADXR**(10, 14)\[**int** barsAgo]), the value of the indicator will be outputted for the referenced bar.

#### Parameters <a href="#parameters_4" id="parameters_4"></a>

inSeries Input data series for the indicator

interval Interval between the first ADX value and the current ADX value

period Number of bars included in the calculation

#### Visualization <a href="#visualization_5" id="visualization_5"></a>

![Average Directional Movement Rating (ADXR)](https://agenatrader.github.io/AgenaIndicator-documentation/media/ADXR.jpg)

#### Example <a href="#example_5" id="example_5"></a>

```csharp
//Output of the current value of the ADXR
Print("Value of the ADXR: " + ADXR(10, 14)[0]);
```
