Lean
$LEAN_TAG$
|
The McClellan Summation Index (MSI) is a market breadth indicator that is based on the rolling average of difference between the number of advancing and declining issues on a stock exchange. It is generally considered as is a long-term version of the McClellanOscillator More...
Public Member Functions | |||||||
McClellanSummationIndex (string name, int fastPeriod=19, int slowPeriod=39) | |||||||
Initializes a new instance of the McClellanSummationIndex class
| |||||||
McClellanSummationIndex (int fastPeriod=19, int slowPeriod=39) | |||||||
Initializes a new instance of the McClellanSummationIndex 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 => McClellanOscillator.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod => McClellanOscillator.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 | |
IndicatorDataPoint | Summation [get] |
The McClellan Summation Index value More... | |
McClellanOscillator | McClellanOscillator [get] |
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... | |
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 Summation Index (MSI) is a market breadth indicator that is based on the rolling average of difference between the number of advancing and declining issues on a stock exchange. It is generally considered as is a long-term version of the McClellanOscillator
Definition at line 25 of file McClellanSummationIndex.cs.
QuantConnect.Indicators.McClellanSummationIndex.McClellanSummationIndex | ( | string | name, |
int | fastPeriod = 19 , |
||
int | slowPeriod = 39 |
||
) |
Initializes a new instance of the McClellanSummationIndex 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 54 of file McClellanSummationIndex.cs.
QuantConnect.Indicators.McClellanSummationIndex.McClellanSummationIndex | ( | int | fastPeriod = 19 , |
int | slowPeriod = 39 |
||
) |
Initializes a new instance of the McClellanSummationIndex class
fastPeriod | The fast period of EMA of advance decline difference |
slowPeriod | The slow period of EMA of advance decline difference |
Definition at line 74 of file McClellanSummationIndex.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 84 of file McClellanSummationIndex.cs.
override void QuantConnect.Indicators.McClellanSummationIndex.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 94 of file McClellanSummationIndex.cs.
void QuantConnect.Indicators.McClellanSummationIndex.Add | ( | Symbol | asset | ) |
Add Tracking asset issue
asset | the tracking asset issue |
Definition at line 104 of file McClellanSummationIndex.cs.
void QuantConnect.Indicators.McClellanSummationIndex.Remove | ( | Symbol | asset | ) |
Remove Tracking asset issue
asset | the tracking asset issue |
Definition at line 113 of file McClellanSummationIndex.cs.
override bool QuantConnect.Indicators.McClellanSummationIndex.IsReady => McClellanOscillator.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 41 of file McClellanSummationIndex.cs.
int QuantConnect.Indicators.McClellanSummationIndex.WarmUpPeriod => McClellanOscillator.WarmUpPeriod |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 46 of file McClellanSummationIndex.cs.
|
getprotected |
The McClellan Summation Index value
Protected for testing
Definition at line 31 of file McClellanSummationIndex.cs.
|
get |
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 36 of file McClellanSummationIndex.cs.