Is there a reason this does not return the correct values for me?
function main() {
if(getCurrentBarIndex()==0 && run0==null){run0=1
for (i = 0; i < 20; i++){
sym="AB H5, 5"
x= high(-i, sym )
//debugPrintln("P")
hAB.unshift(x);
debugPrintln(i, " ",hAB[0], " ", sym, " ", x)
}
}
return;
}
function main() {
if(getCurrentBarIndex()==0 && run0==null){run0=1
for (i = 0; i < 20; i++){
sym="AB H5, 5"
x= high(-i, sym )
//debugPrintln("P")
hAB.unshift(x);
debugPrintln(i, " ",hAB[0], " ", sym, " ", x)
}
}
return;
}
Comment