Here is some simple (and understandable!!) code
from [stockfetcher.com](http://stockfetcher.com) that looks for stocks
with CCI on the move. (No attempt was made to
do any optimizing.)
cci crossed above -100 in the last 2 days
cci has been rising for 3 days
volume is above 1000000
price is above 50
The site also shows how the stock/ETFs that passed
the code performed over the following month.
In this time period, seems that the energy stocks and
ETFs are making a comeback.
So as an example, XLE passed the code criteria.
In the last year, if you bought when condition was met
and held for a month
there were 5 gains and 2 losses.
And the next following section shows the date and
amount.
XLE - Select Sector SPDR-Energy
1 Month
60.40% Cumulative Change
5 # of Gains
2 # of Losses
71.43% Percentage Profitable
1 Month
-5.63% Tuesday July 13, 2021
17.06% Thursday September 23, 2021
-3.82% Wednesday November 24, 2021
9.74% Friday December 3, 2021
20.05% Thursday December 23, 2021
8.09% Tuesday March 1, 2022
14.90% Thursday April 28, 2022
-----------------------------
OXY - OCCIDENTAL PETROLEUM CORP
1 Month
20.57% Cumulative Change
1 # of Gains
0 # of Losses
100.00% Percentage Profitable
1 Month
20.57% Monday May 2, 2022
-----------------------------
DVN - Devon Energy Cp
1 Month
47.05% Cumulative Change
3 # of Gains
0 # of Losses
100.00% Percentage Profitable
1 Month
14.40% Wednesday January 26, 2022
4.94% Friday March 18, 2022
27.70% Thursday April 28, 2022
-----------------------------
XOP - SPDR S&P Oil & Gas Exploration & Product
1 Month
76.51% Cumulative Change
5 # of Gains
1 # of Losses
83.33% Percentage Profitable
1 Month
8.28% Thursday August 12, 2021
24.64% Tuesday August 24, 2021
-7.29% Wednesday November 24, 2021
9.98% Friday December 3, 2021
22.90% Friday February 25, 2022
18.00% Thursday April 28, 2022
-----------------------------
CVX - Chevron
1 Month
67.05% Cumulative Change
6 # of Gains
0 # of Losses
100.00% Percentage Profitable
1 Month
5.24% Tuesday August 24, 2021
14.03% Thursday September 23, 2021
0.65% Wednesday November 24, 2021
16.29% Thursday December 23, 2021
21.85% Thursday February 24, 2022
8.98% Thursday April 28, 2022
-----------------------------
FANG - Diamondback Energy Inc
1 Month
50.42% Cumulative Change
5 # of Gains
1 # of Losses
83.33% Percentage Profitable
1 Month
-4.81% Wednesday November 24, 2021
4.98% Tuesday December 7, 2021
21.43% Thursday December 23, 2021
6.24% Thursday January 27, 2022
4.49% Friday March 18, 2022
18.09% Thursday April 28, 2022
Not all the stocks that the code found were
profitable. So you have to invest wisely...
Different sites use different values (days)for default values-
if nothing is specified, i.e. just CCI.
Seems that stockchart.com uses 20 - CCI(20).
While stockfetcher.com uses 14 - CCI(14)
The later is what I used in my previous post to
obtain those results.
Naturally, a user can specify any value, though, just like
calculating a moving average. Even CCI(100) gives some nice results.