Calculating the McClellan Oscillator
|
I've been trying my hand at calculating the McClellan Oscillator. One version that describes it calls for using the difference between an exponentially smoothed 39-day moving average and a 19-day moving average. A second version just calls for using exponentially smoothed data with a 10% smoother and a 5% smoother. The McClellan Oscillator and Summation Index were developed by my parents back in 1969. Calculation of these indicators starts with the daily A-D difference, as you have probably already discerned. Two different exponential moving averages, the 10% Trend and the 5% Trend, are calculated to smooth the daily A-D data, and the McClellan Oscillator is the numerical difference between these two moving averages. The Summation Index is the total of all previous McClellan Oscillator values, and it is neutral at +1000 when calculated and calibrated properly. The 10% or 5% figure refers to the smoothing constant of the moving average. The best way to think of it is that for the 10% Trend (for example), the new value for today's 10% Trend would be moved from yesterday's value by an amount equal to 10% of the difference between today's price (or A-D difference) and yesterday's 10% Trend value. Stated algebraically, it reads: 2/(19+1), or 2/20, or 1/10, which is really 10%. We prefer not to refer to EMAs by a number of days, since this is somewhat misleading. With a simple moving average (SMA), the old data does disappear from the calculations. So if you have a 50-day SMA, the price value from 51 days ago does not matter at all, while the one from 50 days ago matters just as much as the one from 1 day ago. With an exponential moving average, the effects of the old data never completely disappear, they just become progressively less relevant. We prefer instead to identify EMAs by their tracking rates, and so we use the terminology originally assigned by the late P.N. Haurlan. In the 1960s, Haurlan was the first person to write about using exponential moving averages for analyzing stock prices. He was an actual rocket scientist who worked at JPL in the day time and then analyzed stocks at night. For more on Haurlan, see 2004 MTA Booklet.
Tom McClellan Keywords: McClellan Oscillator Calculation EMA Advance-Decline 10%Trend 5%Trend Technical Analysis |


Chart Interpretation
Data Questions
Related Articles
Can you tell me how I can calculate the values you list for the major indices in the big table of your Daily Edition? If...
I once heard that a minor change in the value of the McClellan Oscillator will forecast a big price move soon. Is that really...
Can the oscillator be used for day trading? If yes, which parameters and best time frame for the best results? Thanks for writing. The...