Can someone help me add 2 green horizontal band lines to this formula at + - 100?
I'll be happy editing the + - values and color through the editor later but can't seem to be able to make them showup in a working efs. I'm not very knowledgeable writing these things.
All help is welcome,
Brian
var study = new CCIStudy(14, "Close");
function preMain() {
setCursorLabelName("CCI");
setStudyTitle("rg/CCIh 14");
}
function main() {
setPlotType(PLOTTYPE_HISTOGRAM);
if (study.getValue(CCIStudy.CCI)>0)
{setDefaultBarFgColor(Color.lime,0);}
if (study.getValue(CCIStudy.CCI)<0)
{setDefaultBarFgColor(Color.red,0);}
return study.getValue(CCIStudy.CCI);
}
I'll be happy editing the + - values and color through the editor later but can't seem to be able to make them showup in a working efs. I'm not very knowledgeable writing these things.
All help is welcome,
Brian
var study = new CCIStudy(14, "Close");
function preMain() {
setCursorLabelName("CCI");
setStudyTitle("rg/CCIh 14");
}
function main() {
setPlotType(PLOTTYPE_HISTOGRAM);
if (study.getValue(CCIStudy.CCI)>0)
{setDefaultBarFgColor(Color.lime,0);}
if (study.getValue(CCIStudy.CCI)<0)
{setDefaultBarFgColor(Color.red,0);}
return study.getValue(CCIStudy.CCI);
}
Comment