JackCorsellis

McClellan Oscillator Jack Corsellis [LazyBear Modified]

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.

The original code was written by LazyBear ( code here: www.tradingview.com/...Oscillator-LazyBear/)

We have modified this code:
1. Added the ability to display and configure the overbought and undersold lines which are key to properly using this indicator. These are set to default +40 and -75 respectively.
2. This version uses USI:ADV(advances- issues) and USI:DECL (declines - issues) as the default.
Release Notes:
Revision:

Updated default symbols:

USI: ADV -> ADVN
USI:DECL -> DECN
Release Notes:
Updated chart screenshot

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?