+1 888 340 6572

Bands > CCI Average

Article/Author: Omega Research Inc., 1997

Download: CCI_AVG.ELA

Category: Indicator > Bands

Description:

The Commodity Channel Index Average, like the Commodity Channel Index, is used primarily to identify beginning and ending of cycles in futures markets and is commonly used to identify buy and sell opportunities. The CCI is calculated so that 70-80% of all price activity falls between +100 and -100 on its vertical scale. Many analysts believe a long position is indicated when the CCI exceeds +100 while a short position is indicated when the CCI falls below -100 but these values should be based more on your market analysis. For example, you may decide that for the market you are evaluating, a -125 indicates taking a short position while a +150 indicates taking a long position.

Usage:

Many analysts also use this indicator to signal overbought and oversold markets, much like an oscillator. Breakouts above the CCIlong line indicate an overbought market and breakouts below the CCIshort line indicate an oversold market. The CCI often misses the early part of a new move because of the amount of time it spends in the neutral position (between the CCIlong and CCIshort lines). Many analysts believe the CCI Average crossing above or below zero identifies market conditions before the CCIlong and CCIshort lines are crossed.




Inputs:

Length1 - Number of bars used to calculate the CCI
Length2 - Number of bars used to calculate the average of the CCI
CCILong - Value used to determine a bullish/overbought market
CCIShort - Value used to determine a bearish/oversold market

EasyLanguage Code:
INPUTS: LENGTH1(20), LENGTH2(10), CCILONG(100), CCISHORT(-100);


PLOT1(CCI(LENGTH1), "CCI" );
PLOT2(CCILONG, "CCILONG" );
PLOT3(CCISHORT, "CCISHORT" );
PLOT4(AVERAGE(PLOT1, LENGTH2), "CCIAVG" );

{ALERT CRITERIA}
IF PLOT1 > PLOT2 THEN
ALERT("CCI IS IN OVERBOUGHT TERRITORY")
ELSE
IF PLOT1 < PLOT3 THEN
ALERT("CCI IS IN OVERSOLD TERRITORY");

IF PLOT1 CROSSES OVER 0 THEN
ALERT("CCI HAS CROSSED OVER ZERO")
ELSE
IF PLOT1 CROSSES UNDER 0 THEN
ALERT("CCI HAS CROSSED UNDER ZERO");