Folks, I cannot seem to get this to work regardless of what I do to coax a non null value. Your guidance is really appreciated:
function main(IPeriod) {
.......
if (!binit) {
highs1=highest(IPeriod, high());
lows1=lowest(IPeriod,low());
hlc1=efsInternal("gethlc3");
hlcma1=sma(34, hlc1);
}
highs0=highs1.getValue(0); <---value is fine
lows0=lows1.getValue(0); <--- " "
var hlcc=hlc1.getValue(0);
debugPrintln(hlcc); <--Only prints nulls!
.....
return;
}
function gethlc3() {
return((highs1+lows1+close())/3);
}
function main(IPeriod) {
.......
if (!binit) {
highs1=highest(IPeriod, high());
lows1=lowest(IPeriod,low());
hlc1=efsInternal("gethlc3");
hlcma1=sma(34, hlc1);
}
highs0=highs1.getValue(0); <---value is fine
lows0=lows1.getValue(0); <--- " "
var hlcc=hlc1.getValue(0);
debugPrintln(hlcc); <--Only prints nulls!
.....
return;
}
function gethlc3() {
return((highs1+lows1+close())/3);
}
Comment