# 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]);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/average-directional-movement-rating-adxr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
