Class AroonOscillator
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
The Aroon Oscillator is the difference between AroonUp and AroonDown. The value of this indicator fluctuates between -100 and +100. An upward trend bias is present when the oscillator is positive, and a negative trend bias is present when the oscillator is negative. AroonUp/Down values over 75 identify strong trends in their respective direction.
public class AroonOscillator : BarIndicator, IIndicator, IUpdatable
- Inheritance
-
AroonOscillator
- Implements
- Inherited Members
- Extension Methods
Constructors
AroonOscillator(int, int)
Creates a new AroonOscillator from the specified up/down periods.
public AroonOscillator(int upPeriod, int downPeriod)
Parameters
upPeriodintThe lookback period to determine the highest high for the AroonDown
downPeriodintThe lookback period to determine the lowest low for the AroonUp
AroonOscillator(string, int, int)
Creates a new AroonOscillator from the specified up/down periods.
public AroonOscillator(string name, int upPeriod, int downPeriod)
Parameters
namestringThe name of this indicator
upPeriodintThe lookback period to determine the highest high for the AroonDown
downPeriodintThe lookback period to determine the lowest low for the AroonUp
Properties
AroonDown
Gets the AroonDown indicator
public IndicatorBase AroonDown { get; }
Property Value
AroonUp
Gets the AroonUp indicator
public IndicatorBase AroonUp { get; }
Property Value
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator and both sub-indicators (AroonUp and AroonDown)
public override void Reset()