I'd like an alarm(alert) when the 6 CCI leads (breaks) 50 to 100 ahead though the zero line in front of the 14 CCI also known as a "turbo bolt". Primarily used on the 9 and 13 min chart. An indication of the change in momentum.
The formula below is a woodies cci efs with a stacked histogram.
1) title " CCI turbo alert"
2) non price study
3) indication of possible change in momentum
CJK
var study = new CCIStudy(14, "HLC/3");
var study2 = new CCIStudy(6, "HLC/3");
function preMain() {
addBand(100, PS_DOT, 2, Color.red);
addBand(0, PS_DASH, 1, Color.white);
addBand(-100, PS_DOT, 2, Color.red);
setDefaultBarFgColor(Color.lime ,0);
setDefaultBarFgColor(Color.white ,1);
setDefaultBarThickness(0,0);
setDefaultBarThickness(2,1)
setCursorLabelName("Turbo",0);
setCursorLabelName("CCI",1);
setStudyTitle("CCI");
}
function main() {
var vCCI = study.getValue(CCIStudy.CCI);
var vTurbo = study2.getValue(CCIStudy.CCI);
return new Array (vTurbo,vCCI);
The formula below is a woodies cci efs with a stacked histogram.
1) title " CCI turbo alert"
2) non price study
3) indication of possible change in momentum
CJK
var study = new CCIStudy(14, "HLC/3");
var study2 = new CCIStudy(6, "HLC/3");
function preMain() {
addBand(100, PS_DOT, 2, Color.red);
addBand(0, PS_DASH, 1, Color.white);
addBand(-100, PS_DOT, 2, Color.red);
setDefaultBarFgColor(Color.lime ,0);
setDefaultBarFgColor(Color.white ,1);
setDefaultBarThickness(0,0);
setDefaultBarThickness(2,1)
setCursorLabelName("Turbo",0);
setCursorLabelName("CCI",1);
setStudyTitle("CCI");
}
function main() {
var vCCI = study.getValue(CCIStudy.CCI);
var vTurbo = study2.getValue(CCIStudy.CCI);
return new Array (vTurbo,vCCI);