from an SI thread
Is there a possibility in esgnal to create 2 overlaying cci's with different style drawings?
If so can you tell me how?
Tia,
Olga
ended up with this
setStudyTitle("CCI 14");
var study14 = new CCIStudy(14, "(H+L+C)/3");
var study6 = new CCIStudy( 6, "(H+L+C)/3");
function preMain() {
setPlotType(PLOTTYPE_HISTOGRAM);
}
function main() {
if (study14.getValue(CCIStudy.CCI)>0)
{setDefaultBarFgColor(Color.lime,0);}
if (study14.getValue(CCIStudy.CCI)<0)
{setDefaultBarFgColor(Color.red,0);}
return new Array(study14.getValue(CCIStudy.CCI),study6.getVal ue(CCIStudy.CCI));
}
Is there a possibility in esgnal to create 2 overlaying cci's with different style drawings?
If so can you tell me how?
Tia,
Olga
ended up with this
setStudyTitle("CCI 14");
var study14 = new CCIStudy(14, "(H+L+C)/3");
var study6 = new CCIStudy( 6, "(H+L+C)/3");
function preMain() {
setPlotType(PLOTTYPE_HISTOGRAM);
}
function main() {
if (study14.getValue(CCIStudy.CCI)>0)
{setDefaultBarFgColor(Color.lime,0);}
if (study14.getValue(CCIStudy.CCI)<0)
{setDefaultBarFgColor(Color.red,0);}
return new Array(study14.getValue(CCIStudy.CCI),study6.getVal ue(CCIStudy.CCI));
}
Comment