Developed by Sherman and Marian McClellan, the McClellan Oscillator is a breadth indicator derived from Net Advances, the number of advancing issues less the number of declining issues. Subtracting the 39-day exponential moving average of Net Advances from the 19-day exponential moving average of Net Advances forms the oscillator.
As the formula reveals, the McClellan Oscillator is a momentum indicator that works similar to MACD.
McClellan Oscillator signals can be generated with breadth thrusts, centerline crossovers, overall levels and divergences.
I have added the following options: - Can choose Advancing/Declining issues of any market. Default is NYSE. - Can show the EMAs and/or oscillator. - Ratio Adjusted Calculation mode (as explained in the stockcharts link below) or default mode. - Can use custom timeframe. Default is chart timeframe.