StockFetcher Forums · Filter Exchange · DCCI modification of the CCI indicator<< >>Post Follow-up
glgene
616 posts
msg #115380
Ignore glgene
9/15/2013 11:50:09 PM

Need some help with fixing my SF script. I'm trying to write a modification to the indicator CCI(20), called the
DCCI. By definition, DCCI is a dual CCI; that is, a 5-day EMA of the CCI. The DCCI is supposed to be a trigger line -- similar to the 9-day signal line of the MACD (12,26,9). Note: I chose the 5-day period.

But when I tried to script it, all it seems to do is just smooth the CCI(20). I think I'm supposed to be getting the output of a crossover of the DCCI line over the CCI line.

Could someone give me some help. I want to draw the DCCI-CCI crossover line, similiar to a MACD (12,26) crossover of the 9-period signal line.

Here's my start:

Fetcher[
symlist(vti,spy,dia,iwm,qqq)
set{5ema,cema(cci(20),5)}
add column cci(20)
add column 5ema
draw cci(20) line at 0
draw 5ema line at 0
draw cci(20)
draw 5ema
]



glgene
616 posts
msg #115381
Ignore glgene
9/16/2013 12:56:51 AM

I tried to add the 2 plot-related script lines (below), and I'm still not getting a crossover on one plot. ???

draw cci(20) on plot CCI(20)
draw 5ema on plot cci(20)



tomm1111
202 posts
msg #115382
Ignore tomm1111
9/16/2013 5:19:57 AM

Is what you are looking for?

Fetcher[
symlist(vti,spy,dia,iwm,qqq)
set{5ema,cema(cci(20),5)}
add column cci(20)
add column 5ema
draw cci(20)
draw cci(20) line at 0
draw 5ema on plot cci(20)
]



glgene
616 posts
msg #115384
Ignore glgene
9/16/2013 9:18:16 AM

Bingo! That makes it work. Thanks. Now to experiment with the two input numbers (5 and 20) to come up with a combo that doesn't produce as much noise (too-frequent crossovers). One suggestion was 5 and 80. I think the low number 5 is causing the excess crossovers. CCI(20), I know, is an often-used CCI setting.

Why DCCI vs. CCI? Got the idea from the book, "Getting Started in Chart Patterns (2006)." That, plus some addt'l research via Google (but not much). Claims the DCCI (dual CCI measure) turns the standard (lagging) CCI indicator into a leading indicator. The crossover (using EMA5) as the signal line -- vs. using the slower 0 line crossover on the stand-alone CCI indicator -- would trigger faster buys/sells. Of course, no guarantees.

I would appreciate follow-up remarks from SF users. How would you improve the DCCI settings (dual CCI input numbers)? How would you use DCCI in conjunction with other indicators?

Gene

StockFetcher Forums · Filter Exchange · DCCI modification of the CCI indicator<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.