I'm trying to create a 65day average of a 65day standard deviation. Any help is greatly appreciated.
The following code is returning "none".
function main(nInputLength) {
if(nInputLength == null)
nInputLength = 65;
var nLength = nInputLength;
var i;
var vSum = 0.0;
var vstdev= 0.00;
var vstdev= efsExternal("/Downloads/StandardDeviation.efs",0);
if(vstdev == null) {
return;
}
for(i = 0; i < nLength; i++) {
vSum += vstdev[i];
}
return (vSum / nLength);
The following code is returning "none".
function main(nInputLength) {
if(nInputLength == null)
nInputLength = 65;
var nLength = nInputLength;
var i;
var vSum = 0.0;
var vstdev= 0.00;
var vstdev= efsExternal("/Downloads/StandardDeviation.efs",0);
if(vstdev == null) {
return;
}
for(i = 0; i < nLength; i++) {
vSum += vstdev[i];
}
return (vSum / nLength);
Comment