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);
}
/****************************
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);
}
Comment