How do I load this string return as a multi-element array?
like the following does:
Thanks,
-Ted.
PHP Code:
vRSI = null;
function main() {
// RSI
if (vRSI == null) vRSI = new RSIStudy(8, "Close");
//var aryRSI = vRSI.getValue(RSIStudy.RSI, 0, -2); // loads as a single variable, not an array
var aryRSI = [vRSI.getValue(RSIStudy.RSI, 0, -2)]; // loads as a one element array
debugPrint ( "aryRSI = " + aryRSI + "\n");
debugPrint ( "\naryRSI[0] = " + aryRSI[0] + "\n");
}
like the following does:
PHP Code:
var aryClose = getValue("Close", 0, -2); // [0] is close(), [1] is close(-1), etc.
Thanks,
-Ted.
Comment