Contents 

Technical Analysis functions library for .NET
Trend Indicators
Advance/Decline Line
Aroon Down
Aroon Oscillator
Aroon Up
Bill Williams Profitunity
DEMA
Exponential Moving Average
Exponential Moving Average Difference
Exponential Moving Average Factor
Exponential Moving Average Factor Difference
Line Weighted Moving Average
Line Weighted Moving Average Difference
MACD
Moving Average
Moving Average Difference
Nicoski
Positive Negative Changes Difference
Qstick Indicator
TEMA
Volatility Indicators
Average True Range
Bollinger Band
Bollinger Band Percent
Breadth Advance/Decline
Bollinger Band Width
True Range
Volatility
Volatility Chaikin
Momentum Indicators
Acceleration
Accumulation/Distribution
Balance Of Power
CCI
Fosback Unchanged Issues
Hughes Breadth Index
McClellan Oscillator
McClellan Summation Index
Momentum
Morris Daily Pressure
OBV Oscillator
OBV with Average Volume
On Balance Volume
Performance
Price Oscillator Percent Difference
Price Oscillator Points Difference
RSI
Stochastic Oscillator
Weighted Close
Wilder RSI
Williams R
Market Strength Indicators
Average Of Volume ROC
Chaikin A/D Oscillator
Chaikin Money Flow
Ease Of Movement
Market Facilitation Index
Volume Oscillator Percent Difference
Volume Oscillator Points Difference
Support and Resistance Indicators
Envelope
Additional Functions
Basic Functions
Average Changes
Average Negative Changes
Average Positive Changes
Change
Cumulative Sum
High Value
Low Value
Mean
Median Price
Negative Changes
Negative Changes Sum
Percent Change
Positive Changes
Positive Changes Sum
Sum Lag
Typical Price
Statistical Functions
Correlation Coefficient
Covariance
Standard Deviation
Variance
All Functions
Order TA4.NET
System requirements
Contacts

TA4.Net Web Online Help

Prev Page Next Page

McClellan Oscillator

The McClellan Oscillator is a market breadth indicator that is based on the smoothed difference between the number of advancing and declining issues on the New York Stock Exchange.

The McClellan Oscillator was developed by Sherman and Marian McClellan. Extensive coverage of the oscillator is provided in their book Patterns for Profit.

Indicators that use advancing and declining issues to determine the amount of participation in the movement of the stock market are called "breadth" indicators. A healthy bull market is accompanied by a large number of stocks making moderate upward advances in price. A weakening bull market is characterized by a small number of stocks making large advances in price, giving the false appearance that all is well. This type of divergence often signals an end to the bull market. A similar interpretation applies to market bottoms, where the market index continues to decline while fewer stocks are declining.

The McClellan Oscillator is one of the most popular breadth indicators (another popular breadth indicator is the Advance/Decline Line). Buy signals are typically generated when the McClellan Oscillator falls into the oversold area of -70 to -100 and then turns up. Sell signals are generated when the oscillator rises into the overbought area of +70 to +100 and then turns down.

If the oscillator goes beyond these areas (i.e., rises above +100 or falls below -100), it is a sign of an extremely overbought or oversold condition. These extreme readings are usually a sign of a continuation of the current trend.

For example, if the oscillator falls to -90 and turns up, a buy signal is generated. However, if the oscillator falls below -100, the market will probably trend lower during the next two or three weeks. You should postpone buying until the oscillator makes a series of rising bottoms or the market regains strength.

Syntax:

Public Function McClellanOscillator(ByVal MCOIn() As Double) As Double

Parameters:

  • ByVal MCOIn() As Double

Back to list

 

Example:

 

    Dim TA4Net As New TA4Net.CTAFunctions("YOUR-REGISTRATION-CODE")

    Dim Result() As Double

    Dim CloseValues() As Double

 

    ' loading values to arrays

    CloseValues = GetCloseValues()

    ' calculating Technical Analysis function

    Result = TA4Net.McClellanOscillator(CloseValues)