Triple CCI

CCI with three periods plotted on the same indicator. The turbo is the green line, the long time frame is the white line and the standard CCI is red with the histogram. The main CCI will turn yellow if the reading crosses the 200 value.  

Triple CCI

Triple CCI

# TRIPLECCI
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 17 Jan 2009

declare lower;

input length = 50;
input LongLength = 100;
input turboLength = 14;

DEF CCI50 = CCI(length = length, over_bought = 100, over_sold = -100);
DEF CCI100 = CCI(length = longlength, over_bought = 100, over_sold = -100);
DEF CCI14 = CCI(length = turboLength, over_bought = 100, over_sold = -100);
DEF CCILineColor = if(AbsValue(CCI50) > 200, 8, 5);

plot Long = CCI100;
Long.SetDefaultColor(color.white);

plot CCI = CCI50;
CCI.SetPaintingStrategy(paintingStrategy.HISTOGRAM);
CCI.SetDefaultColor(color.red);

plot Turbo = CCI14;
turbo.SetDefaultColor(color.green);

plot Plus100 = 100;
Plus100.SetDefaultColor(color.green);

plot Minus100 = -100;
Minus100.SetDefaultColor(color.green);

plot Zero = 0;
Zero.SetDefaultColor(color.green);

plot CCILine = CCI50;
CCILine.AssignValueColor(GetColor(CCILineColor));
CCILine.SetLineWeight(2);
This entry was posted in Indicator and tagged , , . Bookmark the permalink.

3 Responses to Triple CCI

  1. ThinkScripter says:

    Yes, WordPress turns <> signs into escape code equivalents (&lt / &gt) and I need to hunt them down and strip them out. It has been fixed.
    Thanks again,
    Eric

  2. Eric says:

    Eric

    Great site just joined your group worth every penny and more. Question about the CCI is this similar or just like the WoodiesCCI or have you heard of him and his other study/indicators also have you heard or seen a Shem’s STOCH as well

    Eric

    • ThinkScripter says:

      Eric,
      This is just three CCIs of different periods superimposed on one study (saves space!). There is an exact Woodies CCI that comes with TOS – do a search through the indicators for Woodies…Never seen Shem’s Stoch.
      Welcome Aboard,
      Eric

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>