PHP Code:
var vPctR70 = new PercentRStudy(35);
function preMain() {
setPriceStudy(false);
setStudyTitle("PRCNT R");
}
function main() {
if (vPctR70.getValue(PercentRStudy.PERECENTR) < -50)setBarBgColor(Color.RGB(255,0,0));
else if (vPctR70.getValue(PercentRStudy.PERECENTR) > -50)setBarBgColor(Color.RGB(0,255,0));
return new Array(
vPctR70.getValue(PercentRStudy.PERECENTR),
null
);
}
please help
regards erilein
Comment