Class AccumulationDistributionOscillator
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
This indicator computes the Accumulation/Distribution Oscillator (ADOSC) The Accumulation/Distribution Oscillator is calculated using the following formula: ADOSC = EMA(fast,AD) - EMA(slow,AD)
public class AccumulationDistributionOscillator : TradeBarIndicator, IIndicator, IUpdatable
- Inheritance
-
AccumulationDistributionOscillator
- Implements
- Inherited Members
- Extension Methods
Constructors
AccumulationDistributionOscillator(int, int)
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters
public AccumulationDistributionOscillator(int fastPeriod, int slowPeriod)
Parameters
AccumulationDistributionOscillator(string, int, int)
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters
public AccumulationDistributionOscillator(string name, int fastPeriod, int slowPeriod)
Parameters
namestringThe name of this indicator
fastPeriodintThe fast moving average period
slowPeriodintThe slow moving average period
Properties
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 to its initial state
public override void Reset()