McClellan Oscillator
<< Click to Display Table of Contents >> McClellan Oscillator |
McClellan Oscillator is the difference between two exponential moving averages of the NYSE advance decline spread. This indicator require ADV and DECL index data.
McClellanOsillator(ISeries<double> input, int fastPeriod, int slowPeriod)
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
fastPeriod |
Number of bars used in the fast moving average calculation |
slowPeriod |
Number of bars used in the slow moving average calculation |
// An ADV and DECL data series must be added to OnStateChange() else if (State == State.Configure){AddDataSeries("^ADV");AddDataSeries("^DECL");}// Prints the current value of the McClellan Oscillator with a 19 fast period moving average & 39 slow period
|