Announcement

Collapse
No announcement yet.

CCI Avgerage

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

  • CCI Avgerage

    how can i add in 5 avgerage of cci 14?
    /****************************
    Copyright © eSignal, 2003
    ****************************/

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

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

    function main() {

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


    return new Array (vTurbo,vCCI);

    }

  • #2
    sptrader2
    If you click here you can find a ready made MAofCCI.efs. You can then add the second CCI study to that.
    Alex

    Comment

    Working...
    X