# Aroon Oscillator

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

This oscillator is calculated by subtracting the Aroon-Down from the Aroon-Up. Usually, these two indicators are plotted next to each other for easy comparison, but traders can also view the difference between the two indicators using the Aroon oscillator, which can fluctuate between -100 and +100, with zero as the middle line. When the oscillator is positive, this indicates a bullish trend bias, whilst when the oscillator is negative, this shows a bearish trend bias. Chartists also have the option to extend the bull-bear threshold to spot stronger signals.

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

The Aroon Oscillator is ideally used as a trend filter and trend strength indicator. It is used analogously to the ADX Indicator.

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

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

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

**double**

When using this method with an index such as (**AroonOcsillator**(20)\[**int** barsAgo] ), the value of the indicator will be outputted for the bar that was referenced.

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

inSeries Input data series for the indicator

period Number of bars taken into consideration for the calculations

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

![Aroon Oscillator](https://agenatrader.github.io/AgenaIndicator-documentation/media/ArronOscillator.jpg)

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

```csharp
//Output for the current value for a 20 period Aroon Oscillator
Print("Value for the oscillator is: " + AroonOscillator(20)[0]);
```
