Announcement

Collapse
No announcement yet.

Woodie's CCI Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Woodie's CCI Strategy

    OK, so I tried to meld the newer Woodie's CCI w/ color histogram into the CCI strategy, but it wasn't quite obvious to me how to make that succeed.

    Also, maybe its just me, but the strategy cci seems significantly different than the average cci. It seems like the strategy is more derived from a MA crossover than a true cci?

    var study = new CCIStudy(14, "HLC/3");
    var study2 = new CCIStudy(6, "HLC/3");

    function preMain() {
    addBand(200, PS_DOT, 2, Color.black);
    addBand(100, PS_SOLID, 2, Color.red);
    addBand(0, PS_DASH, 2, Color.black);
    addBand(-100, PS_SOLID, 2, Color.lime);
    addBand(-200, PS_DOT, 2, Color.black);
    setDefaultBarFgColor(Color.white, 0);
    setDefaultBarFgColor(Color.black, 1);
    setDefaultBarFgColor(Color.blue, 2);
    setDefaultBarThickness(2,0);
    setDefaultBarThickness(2,1);
    setDefaultBarThickness(2,2);
    setPlotType(PLOTTYPE_HISTOGRAM,2)
    setCursorLabelName("Turbo",0);
    setCursorLabelName("CCI",1);
    setCursorLabelName("CCI",2);
    setStudyTitle("Woodies CCI");
    }

    function main() {

    var vCCI = study.getValue(CCIStudy.CCI);
    var vTurbo = study2.getValue(CCIStudy.CCI);

    if (study.getValue(CCIStudy.CCI) > study.getValue(CCIStudy.CCI,-1))
    setBarFgColor(Color.lime,2);
    if (study.getValue(CCIStudy.CCI) < study.getValue(CCIStudy.CCI,-1))
    setBarFgColor(Color.red,2);

    return new Array (vTurbo,vCCI,vCCI);

    }
    //CCI Averages Crossover Strategy

    var study = new CCIStudy(10, "Close");

    function preMain() {
    setPriceStudy(false);
    setStudyTitle("CCI Strategy");
    setCursorLabelName("CCI MA Slow",0);
    setDefaultBarFgColor(Color.red,0);
    setCursorLabelName("CCI MA FAST",1);
    setDefaultBarFgColor(Color.blue,1);
    setColorPriceBars(true);
    setDefaultPriceBarColor(Color.grey);
    }

    function main(FastMA,SlowMA) {
    if (FastMA == null)
    FastMA = 10;
    if (SlowMA == null)
    SlowMA = 20;
    var vCCI;
    var i;
    var SlowSum = 0, FastSum = 0;

    vCCI = study.getValue(CCIStudy.CCI,0,-SlowMA);
    if(vCCI == null)
    return;
    for(i = 0; i < SlowMA; i++){
    if(i < FastMA)
    FastSum += vCCI[i];
    SlowSum += vCCI[i]
    }
    SMA = SlowSum / SlowMA;
    FMA = FastSum / FastMA;

    if(SMA < FMA && !Strategy.isLong())
    Strategy.doLong("Long", Strategy.MARKET, Strategy.THISBAR);
    if(SMA > FMA && !Strategy.isShort())
    Strategy.doShort("Short", Strategy.MARKET, Strategy.THISBAR);

    if(Strategy.isLong())
    setPriceBarColor(Color.lime);
    if(Strategy.isShort())
    setPriceBarColor(Color.red);

    return new Array(SMA,FMA);
    }

  • #2
    I'm certainly no expert on the Woodie CCI strategy, but I can say that there are a number of ways to trade using it. A good place to start is on the TalkStox forum where Woodie frequents.
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      Here's an example of some entry points on Woodies CCI. TLB = Trend Line Break.

      Regards,
      Jay F.
      Product Manager
      _____________________________________
      Have a suggestion to improve our products?
      Click Support --> Request a Feature in eSignal 11

      Comment


      • #4
        Jay, actually I'm referring to the fact that the CCI Strategy that I downloaded from one of the folders seems to be based off of MA crossovers and not actual CCI; unless its using different values or something because it doesn't look like the actual CCI (built-in or Woodie) that I'm using.

        Comment


        • #5
          My apologies for misunderstanding. You are correct. That strategy is based on the crossover of two Moving Averages based on the CCI as the source of the MA's, which is very different then the traditional or Woodie CCI strategies.
          Regards,
          Jay F.
          Product Manager
          _____________________________________
          Have a suggestion to improve our products?
          Click Support --> Request a Feature in eSignal 11

          Comment

          Working...
          X