Lean
$LEAN_TAG$
|
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) More...
Public Member Functions | |
AccumulationDistributionOscillator (int fastPeriod, int slowPeriod) | |
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters More... | |
AccumulationDistributionOscillator (string name, int fastPeriod, int slowPeriod) | |
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Attributes | |
override bool | IsReady => Samples >= _period |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod => _period |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (TradeBar input) |
Computes the next value of this indicator from the given state More... | |
Protected Member Functions inherited from QuantConnect.Indicators.TradeBarIndicator | |
TradeBarIndicator (string name) | |
Creates a new TradeBarIndicator with the specified name More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
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)
Definition at line 26 of file AccumulationDistributionOscillator.cs.
QuantConnect.Indicators.AccumulationDistributionOscillator.AccumulationDistributionOscillator | ( | int | fastPeriod, |
int | slowPeriod | ||
) |
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters
fastPeriod | The fast moving average period |
slowPeriod | The slow moving average period |
Definition at line 38 of file AccumulationDistributionOscillator.cs.
QuantConnect.Indicators.AccumulationDistributionOscillator.AccumulationDistributionOscillator | ( | string | name, |
int | fastPeriod, | ||
int | slowPeriod | ||
) |
Initializes a new instance of the AccumulationDistributionOscillator class using the specified parameters
name | The name of this indicator |
fastPeriod | The fast moving average period |
slowPeriod | The slow moving average period |
Definition at line 49 of file AccumulationDistributionOscillator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 73 of file AccumulationDistributionOscillator.cs.
override void QuantConnect.Indicators.AccumulationDistributionOscillator.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 85 of file AccumulationDistributionOscillator.cs.
override bool QuantConnect.Indicators.AccumulationDistributionOscillator.IsReady => Samples >= _period |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 61 of file AccumulationDistributionOscillator.cs.
int QuantConnect.Indicators.AccumulationDistributionOscillator.WarmUpPeriod => _period |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 66 of file AccumulationDistributionOscillator.cs.