Lean
$LEAN_TAG$
|
The McClellan Oscillator is a market breadth indicator which was developed by Sherman and Marian McClellan. It is based on the difference between the number of advancing and declining periods. More...
Public Member Functions | |||||||
McClellanOscillator (string name, int fastPeriod=19, int slowPeriod=39) | |||||||
Initializes a new instance of the McClellanOscillator class
| |||||||
McClellanOscillator (int fastPeriod=19, int slowPeriod=39) | |||||||
Initializes a new instance of the McClellanOscillator class
| |||||||
override void | Reset () | ||||||
Resets this indicator to its initial state More... | |||||||
void | Add (Symbol asset) | ||||||
Add Tracking asset issue More... | |||||||
void | Remove (Symbol asset) | ||||||
Remove Tracking asset issue More... | |||||||
Public Attributes | |
override bool | IsReady => EMASlow.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod => EMASlow.WarmUpPeriod + ADDifference.WarmUpPeriod |
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... | |
Properties | |
ExponentialMovingAverage | EMAFast [get] |
Fast period EMA of advance decline difference More... | |
ExponentialMovingAverage | EMASlow [get] |
Slow period EMA of advance decline difference More... | |
AdvanceDeclineDifference | ADDifference [get] |
The number of advance assets minus the number of decline assets More... | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
The McClellan Oscillator is a market breadth indicator which was developed by Sherman and Marian McClellan. It is based on the difference between the number of advancing and declining periods.
Definition at line 26 of file McClellanOscillator.cs.
QuantConnect.Indicators.McClellanOscillator.McClellanOscillator | ( | string | name, |
int | fastPeriod = 19 , |
||
int | slowPeriod = 39 |
||
) |
Initializes a new instance of the McClellanOscillator class
name | The name of the indicator |
fastPeriod | The fast period of EMA of advance decline difference |
slowPeriod | The slow period of EMA of advance decline difference |
Definition at line 61 of file McClellanOscillator.cs.
QuantConnect.Indicators.McClellanOscillator.McClellanOscillator | ( | int | fastPeriod = 19 , |
int | slowPeriod = 39 |
||
) |
Initializes a new instance of the McClellanOscillator class
fastPeriod | The fast period of EMA of advance decline difference |
slowPeriod | The slow period of EMA of advance decline difference |
Definition at line 79 of file McClellanOscillator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 89 of file McClellanOscillator.cs.
override void QuantConnect.Indicators.McClellanOscillator.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 99 of file McClellanOscillator.cs.
void QuantConnect.Indicators.McClellanOscillator.Add | ( | Symbol | asset | ) |
Add Tracking asset issue
asset | the tracking asset issue |
Definition at line 113 of file McClellanOscillator.cs.
void QuantConnect.Indicators.McClellanOscillator.Remove | ( | Symbol | asset | ) |
Remove Tracking asset issue
asset | the tracking asset issue |
Definition at line 122 of file McClellanOscillator.cs.
override bool QuantConnect.Indicators.McClellanOscillator.IsReady => EMASlow.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 48 of file McClellanOscillator.cs.
int QuantConnect.Indicators.McClellanOscillator.WarmUpPeriod => EMASlow.WarmUpPeriod + ADDifference.WarmUpPeriod |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 53 of file McClellanOscillator.cs.
|
get |
Fast period EMA of advance decline difference
Definition at line 33 of file McClellanOscillator.cs.
|
get |
Slow period EMA of advance decline difference
Definition at line 38 of file McClellanOscillator.cs.
|
get |
The number of advance assets minus the number of decline assets
Definition at line 43 of file McClellanOscillator.cs.