This post focuses on customizable Commodity Channel Index (CCI) factory scans, which can be edited, modified, or rewritten and then scanned using ChartAlert’s native stock screener or technical analysis scanner, namely the Basic Scanner and Advanced Scanner.
Display Commodity Channel Index Values
Tags: CCI screener, CCI scanner, CCI stock screener
List symbols
Add Column CCI(14)
Add Column CCI(26)
Apply to Nifty
Apply to Junior
This scan computes and presents the 14-period and 26-period Commodity Channel Index for all symbols associated with Nifty and Nifty Next 50 (Junior).
OPTION 1
To scan for CCI using an alternative time frame (e.g., 26-period CCI), or to scan for CCI(14) for the previous bar, please revise the scan as follows:
List symbols
Add Column CCI(14) as CCI14
Add Column CCI(14) a bar ago as CCI14_1
Add Column CCI(26) as CCI26
Apply to Nifty
Apply to Junior
Commodity Channel Index (CCI) Buy Signals
Tags: CCI bullish scanner, CCI buy signals
List symbols where CCI(14) has crossed above +100
Add Column CCI(14) as CCI14
Apply to NSE
This scan seeks out instances in which symbols exhibit a recent crossover of the 14-period CCI above the +100 threshold. Additionally, the scan report includes the display of the 14-period CCI values.
OPTION 1
To scan for symbols where the 14-period CCI has recently crossed above the +100 level within the past 3 bars, the scan can be modified as follows:
List symbols where CCI(14) has crossed above +100 in the last 3 bars
Add Column CCI(14) as CCI14
Apply to NSE
OPTION 2
To scan the CCI with an alternative time frame, such as a 26-period CCI, or to examine CCI(14) for the previous bar, please modify the scan as follows:
List symbols where CCI(14) has crossed above +100
Add Column CCI(14) as CCI14
Add Column CCI(14) a bar ago as CCI14_1
Add Column CCI(26) as CCI26
Apply to NSE
Commodity Channel Index (CCI) Sell Signals
Tags: CCI bearish scanner, CCI sell signals
List symbols where CCI(14) has crossed below -100
Add Column CCI(14) as CCI14
Apply to NSE
This scan is designed to identify instances where symbols exhibit a recent occurrence of the 14-period CCI crossing below the -100 level. Additionally, the output scan report provides a visual representation of the 14-period CCI.
OPTION 1
To perform a symbol scan that identifies instances where the 14-period Commodity Channel Index (CCI) has recently dropped below the -100 level within the previous 3 bars, the scan has to be modified as follows:
List symbols where CCI(14) has crossed below -100 in the last 3 bars
Add Column CCI(14) as CCI14
Apply to NSE
OPTION 2
To identify symbols in which the 14-period CCI has recently dipped below the -100 threshold on the previous bar, modify the script in the following manner:
List symbols where CCI(14) a bar ago has crossed below -100
Add Column CCI(14) as CCI14
Add Column CCI(14) a bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to NSE
Commodity Channel Index (CCI) in Overbought Zone
Tags: CCI overbought screener
List symbols where CCI(14) > 100 for the last 3 bars
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
This scan is designed to identify Nifty symbols exhibiting a consistent pattern whereby the 14-period CCI has maintained a value above +100 over the course of the previous 3 bars. Additionally, the output scan report includes the 14-period CCI values for the corresponding three bars.
OPTION 1
To perform a straightforward scan for Nifty symbols exhibiting a 14-period CCI above +100, the scan can be revised accordingly:
List symbols where CCI(14) > 100
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
OPTION 2
Use the terms “greater than”, “more than”, or “is above” interchangeably to replace the symbol “>” as per your preference.
List symbols where CCI(14) is above 100 for the last 3 bars
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
Commodity Channel Index (CCI) in Oversold Zone
Tags: CCI oversold screener
List symbols where CCI(14) < -100 for the last 3 bars
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
Apply to NIFTY500
This scan is designed to identify Nifty and NIFTY500 symbols that exhibit a consistent trend of the 14-period CCI remaining below -100 over the past 3 bars. Additionally, the output scan report provides the values of the 14-period CCI for the last three bars.
OPTION 1
To scan for Nifty symbols with a 14-period CCI below -100, revise the scan as follows:
List symbols where CCI(14) < -100
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
Apply to NIFTY500
OPTION 2
Use the terms “less than” or “is below” interchangeably to replace the symbol “<” as per your preference. Modify the number of trading bars in the oversold zone as follows:
List symbols where CCI(14) is below -100 for the last 5 bars
Add Column CCI(14) as CCI14
Add Column CCI(14) 1 bar ago as CCI14_1
Add Column CCI(14) 2 bars ago as CCI14_2
Apply to Nifty
Apply to NIFTY500
Decreasing CCI
Tags: CCI decreasing screener
List symbols where CCI(14) has been decreasing over 3 bars
Add Column CCI(14)
Add Col CCI(14) a bar ago as CCI(14)_1
Add Col CCI(14) 2 bars ago as CCI(14)_2
Add Col CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
This scan is designed to identify NIFTY500 symbols exhibiting a consistent downward trend in the 14-period CCI over the previous 3 bars. The resulting output scan report includes the 14-period CCI values for the last four bars.
OPTION 1
Revise the scan appropriately to evaluate if the stock is in the oversold zone subsequent to a decline spanning 3 bars.
List symbols where CCI(14) has been decreasing over 3 bars
and CCI(14) is < -100
Add Column CCI(14)
Add Col CCI(14) a bar ago as CCI(14)_1
Add Col CCI(14) 2 bars ago as CCI(14)_2
Add Col CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
OPTION 2
The desired outcome can also be attained by revising the scan as given below. However, this particular approach entails a greater level of complexity in terms of composition and comprehension.
List symbols where CCI(14) < CCI(14) a bar ago
and CCI(14) a bar ago < CCI(14) 2 bars ago
and CCI(14) 2 bars ago < CCI(14) 3 bars ago
Add Column CCI(14) as CCI(14)
Add Column CCI(14) 1 bar ago as CCI(14)_1
Add Column CCI(14) 2 bars ago as CCI(14)_2
Add Column CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
Increasing CCI
Tags: CCI increasing screener
List symbols where CCI(14) has been increasing over 3 bars
Add Column CCI(14)
Add Col CCI(14) a bar ago as CCI(14)_1
Add Col CCI(14) 2 bars ago as CCI(14)_2
Add Col CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
This scan examines NIFTY500 symbols with a discernible upward trend in the 14-period CCI over the previous 3 bars. The output scan report also includes the 14-period CCI values for the last 4 bars.
OPTION 1
You can incorporate an additional condition to verify if the stock is in the overbought zone subsequent to a 3-bar upward trend.
List symbols where CCI(14) has been increasing over 3 bars
and CCI(14) is > +100
Add Column CCI(14)
Add Col CCI(14) a bar ago as CCI(14)_1
Add Col CCI(14) 2 bars ago as CCI(14)_2
Add Col CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
OPTION 2
The desired outcome can also be attained by revising the scan as given below. However, this particular scan approach entails a higher level of complexity in its composition and understanding.
List symbols where CCI(14) > CCI(14) a bar ago
and CCI(14) a bar ago > CCI(14) 2 bars ago
and CCI(14) 2 bars ago > CCI(14) 3 bars ago
Add Column CCI(14)
Add Column CCI(14) 1 bar ago as CCI(14)_1
Add Column CCI(14) 2 bars ago as CCI(14)_2
Add Column CCI(14) 3 bars ago as CCI(14)_3
Apply to NIFTY500
Overbought with a Declining CCI
Tags: CCI overbought and decreasing screener, CCI overbought and declining screener
List symbols where CCI(14) has crossed below +100 after remaining above for 3 bars
Add Column CCI(14) as CCI14
Apply to NSE
This scan identifies symbols whereby the 14-period CCI has recently crossed below the +100 threshold subsequent to sustaining a position above the +100 threshold for a duration of 3 bars. The scan report also includes the 14-period CCI.
OPTION 1
The following presents a more stringent variation. This scanning approach not only identifies instances where the 14-period CCI has recently crossed below the +100 threshold after having sustained levels above +100 for 3 consecutive bars, but also verifies that the CCI values have exhibited a downward trend over the past 4 bars.
List symbols where CCI(14) has crossed below +100
and CCI(14) has been decreasing over the last 4 bars
Add Column CCI(14) as CCI14
Apply to NSE
OPTION 2
By default, the scan output reports are sorted based on the Symbol field. If you wish to sort the reports based on any other column, please include the “Sort on Column” statement as shown below.
List symbols where CCI(14) has crossed below +100 after remaining above for 3 bars
Add Column CCI(14) as CCI14
Sort on Column CCI(14) descending
Apply to NSE
Oversold with an Improving CCI
Tags: CCI oversold and increasing screener, CCI oversold and improving screener
List symbols where CCI(14) has crossed above -100 after remaining below for 3 bars
Add Column CCI(14) as CCI14
Apply to NSE
This scan aims to identify instances where the 14-period CCI has recently crossed above the -100 level, following a period of being consistently below the -100 level for 3 consecutive bars. The output scan report includes the display of the 14-period CCI for reference.
OPTION 1
A more stringent variation is presented below. This scan not only identifies instances where the 14-period CCI has recently transitioned above the -100 threshold, following a sustained period below it for 3 bars, but also verifies that the CCI values have have exhibited an upward trend over the past 4 bars.
List symbols where CCI(14) has crossed above -100
and CCI(14) has been increasing over the last 4 bars
Add Column CCI(14) as CCI14
Apply to NSE
OPTION 2
By default, the scan output reports are sorted based on the Symbol column. If you wish to sort the reports based on any other column, please include the following statement: “Sort on Column.”
List symbols where CCI(14) has crossed above -100 after remaining below for 3 bars
Add Column CCI(14) as CCI14
Sort on Column CCI(14)
Apply to NSE
CCI Moving Average Bullish Crossover
Tags: CCI moving average crossover bullish
List symbols where CCI(14) has crossed above EMA(3,CCI(14)) after remaining below for 3 bars
Add Column CCI(14) as CCI14
Add Column EMA(3,CCI(14)) as EMA_CCI14
Apply to NSE
This scan seeks instances where the 14-period CCI has recently surpassed its 3-period Exponential Moving Average (EMA). Furthermore, the scan report provides the values of both the 14-period CCI and the Moving Average for reference.
OPTION 1
To identify symbols in which the crossover occurred within the preceding two bars, modify the scan as outlined below:
List symbols where CCI(14) has crossed above EMA(3,CCI(14)) after remaining below for 3 bars in the past 2 bars
Add Column CCI(14) as CCI14
Add Column EMA(3,CCI(14)) as EMA_CCI14
Apply to NSE
OPTION 2
To modify the Moving Average type, it is a straightforward process of replacing “EMA” with “SMA” for Simple Moving Average, and so forth. In the following illustration, where the Volume-adjusted Moving Average is utilized, “EMA” has been replaced with “VOLMA.”
List symbols where CCI(14) has crossed above VOLMA(3,CCI(14)) after remaining below for 3 bars
Add Column CCI(14) as CCI14
Add Column VOLMA(3,CCI(14)) as VOLMA_CCI14
Apply to NSE
CCI Moving Average Bearish Crossover
Tags: CCI moving average crossover bearish
List symbols where EMA(3,CCI(14)) has crossed below CCI(14) after remaining above for 3 bars
Add Column CCI(14) as CCI14
Add Column EMA(3,CCI(14)) as EMA_CCI14
Apply to NSE
This scan identifies symbols where the 3-period EMA of the 14-period CCI has recently crossed above the CCI indicator. The output scan report includes the values of the 14-period CCI and the Moving Average.
OPTION 1
In order to identify symbols where the crossover occurred within the preceding 2 bars, it is recommended to modify the scanning process as outlined below:
List symbols where CCI(14) has crossed below EMA(3,CCI(14)) after remaining above for 3 bars in the past 2 bars
Add Column CCI(14) as CCI14
Add Column EMA(3,CCI(14)) as EMA_CCI14
Apply to NSE
OPTION 2
To modify the Moving Average type, simply replace “EMA” with “SMA” for Simple Moving Average. In the case of the provided example, where Volume-adjusted Moving Average is employed, the term “EMA” has been replced with “VOLMA.”
List symbols where VOLMA(3,CCI(14)) has crossed below CCI(14) after remaining above for 3 bars
Add Column CCI(14) as CCI14
Add Column VOLMA(3,CCI(14)) as VOLMA_CCI14
Apply to NSE
Bullish Commodity Channel Index (CCI) Divergence
Tags: CCI bullish divergence, CCI hidden bullish divergence screener
List symbols where pattern is Bullish Divergence CCI
'Plot CCI(20)
Apply to NSE
This scan aims to identify NSE symbols that display a classic bullish CCI divergence. By default, a 20-bar time period is utilized to detect such divergences. The divergence is determined based on the high-low values of the price chart, with a minimum of 5 bars considered for analysis.
For identifying hidden divergences, please explore the option provided below.
OPTION 1
To identify hidden divergence within a 14-period CCI, it is necessary to modify the scan as given below. The output report also presents the calculated value of CCI(14).
List symbols where pattern is Bullish Divergence CCI(14, Hidden)
Add Column CCI(14) as CCI14 chart
Apply to NSE
Bearish Commodity Channel Index (CCI) Divergence
Tags: CCI bearish divergence screener, CCI hidden bearish divergence screener
List symbols where pattern is Bearish Divergence CCI
'Plot CCI(20)
Apply to NSE
This scan is designed to identify NSE symbols that display a classic bearish CCI divergence. By default, the function employs a 20-bar time period to identify such divergences. The divergence is determined by analyzing the high and low values on the price chart, with a minimum of 5 bars considered for accuracy.
For hidden divergences, please refer to the option given below.
OPTION 1
To identify hidden divergence on a 14-period CCI, it is necessary to modify the scan as given below. Additionally, the output report will include the calculated value of CCI(14):
List symbols where pattern is Bearish Divergence CCI(14, Hidden)
Add Column CCI(14) as CCI14
Apply to NSE
For comprehensive insights into the Commodity Channel Index (CCI), including how its computed, how to effectively use CCI in trading, how good is CCI vis-a-vis other oscillators or indicators, as well as an exploration of its advantages and limitations as an indicator, click here.