Registered User Joined: 8/1/2006 Posts: 97
|
Hi. I'm trying to test a system that uses the Commodity Channel Index (CCI). Doesn't seem to be listed among the TC indicators. I take it no one has written a code for it or anything like that? If not, I'd just like to suggest that it be included in a future version of TC. Thanks.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
You can add it as a custom indicator.
20-Period Commodity Channel Index:
(H+L+C-AVGH20-AVGL20-AVGC20)*4000/3/ (ABS(H+L+C-AVGH20-AVGL20-AVGC20)+ABS(H1+L1+C1-AVGH20-AVGL20-AVGC20) +ABS(H2+L2+C2-AVGH20-AVGL20-AVGC20)+ABS(H3+L3+C3-AVGH20-AVGL20-AVGC20) +ABS(H4+L4+C4-AVGH20-AVGL20-AVGC20)+ABS(H5+L5+C5-AVGH20-AVGL20-AVGC20) +ABS(H6+L6+C6-AVGH20-AVGL20-AVGC20)+ABS(H7+L7+C7-AVGH20-AVGL20-AVGC20) +ABS(H8+L8+C8-AVGH20-AVGL20-AVGC20)+ABS(H9+L9+C9-AVGH20-AVGL20-AVGC20) +ABS(H10+L10+C10-AVGH20-AVGL20-AVGC20)+ABS(H11+L11+C11-AVGH20-AVGL20-AVGC20) +ABS(H12+L12+C12-AVGH20-AVGL20-AVGC20)+ABS(H13+L13+C13-AVGH20-AVGL20-AVGC20) +ABS(H14+L14+C14-AVGH20-AVGL20-AVGC20)+ABS(H15+L15+C15-AVGH20-AVGL20-AVGC20) +ABS(H16+L16+C16-AVGH20-AVGL20-AVGC20)+ABS(H17+L17+C17-AVGH20-AVGL20-AVGC20) +ABS(H18+L18+C18-AVGH20-AVGL20-AVGC20)+ABS(H19+L19+C19-AVGH20-AVGL20-AVGC20)+.00001)
CCI INDICATOR
Plotting Custom Indicators with Examples
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
|
Registered User Joined: 8/1/2006 Posts: 97
|
Great, thanks! Just to follow up quickly, the "Center Zero Line" is supposed to be checked, is that correct? What about the "Plot using price scale?" And the smoothing average and simple or exponential? I'm basically just going after the completely standard settings for this indicator.
Lastly, probably a stupid question, but is there any way to name the indicator? I've actually never created an indicator before.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Yes, you want to check Center Zero Line. Do not check Scale with Price since CCI has it's own scaling.
Exponential/Simple is irrelevant as long as you leave the Smoothing Average set to 1.
No, you can't name the indicator.
|
Registered User Joined: 8/1/2006 Posts: 97
|
Thanks again.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
You're welcome.
|