Lean
$LEAN_TAG$
|
This indicator computes the Chande Momentum Oscillator (CMO). CMO calculation is mostly identical to RSI. The only difference is in the last step of calculation: RSI = gain / (gain+loss) CMO = (gain-loss) / (gain+loss) More...
Public Member Functions | |
ChandeMomentumOscillator (int period) | |
Initializes a new instance of the ChandeMomentumOscillator class using the specified period. More... | |
ChandeMomentumOscillator (string name, int period) | |
Initializes a new instance of the ChandeMomentumOscillator class using the specified name and period. More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Member Functions inherited from QuantConnect.Indicators.WindowIndicator< IndicatorDataPoint > | |
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 => 1 + Period |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Public Attributes inherited from QuantConnect.Indicators.WindowIndicator< IndicatorDataPoint > | |
int | Period |
Gets the period of this window indicator More... | |
override bool | IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
virtual int | WarmUpPeriod |
Required period, in data points, to the indicator to be ready and fully initialized More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (IReadOnlyWindow< IndicatorDataPoint > window, IndicatorDataPoint input) |
Computes the next value of this indicator from the given state More... | |
Protected Member Functions inherited from QuantConnect.Indicators.WindowIndicator< IndicatorDataPoint > | |
WindowIndicator (string name, int period) | |
Initializes a new instance of the WindowIndicator class More... | |
override decimal | ComputeNextValue (T input) |
Computes the next value of this indicator from the given state More... | |
abstract decimal | ComputeNextValue (IReadOnlyWindow< T > window, T input) |
Computes the next value for this indicator from the given state. 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 Chande Momentum Oscillator (CMO). CMO calculation is mostly identical to RSI. The only difference is in the last step of calculation: RSI = gain / (gain+loss) CMO = (gain-loss) / (gain+loss)
Definition at line 25 of file ChandeMomentumOscillator.cs.
QuantConnect.Indicators.ChandeMomentumOscillator.ChandeMomentumOscillator | ( | int | period | ) |
Initializes a new instance of the ChandeMomentumOscillator class using the specified period.
period | The period of the indicator |
Definition at line 35 of file ChandeMomentumOscillator.cs.
QuantConnect.Indicators.ChandeMomentumOscillator.ChandeMomentumOscillator | ( | string | name, |
int | period | ||
) |
Initializes a new instance of the ChandeMomentumOscillator class using the specified name and period.
name | The name of this indicator |
period | The period of the indicator |
Definition at line 45 of file ChandeMomentumOscillator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
window | The window for the input history |
Definition at line 66 of file ChandeMomentumOscillator.cs.
override void QuantConnect.Indicators.ChandeMomentumOscillator.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 102 of file ChandeMomentumOscillator.cs.
override bool QuantConnect.Indicators.ChandeMomentumOscillator.IsReady => Samples > Period |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 53 of file ChandeMomentumOscillator.cs.
int QuantConnect.Indicators.ChandeMomentumOscillator.WarmUpPeriod => 1 + Period |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 58 of file ChandeMomentumOscillator.cs.