
Originally Posted by
;
quote Okay, I believe I got it. So, looking on this line again: data2 = (Take[y, 401, 1000] - SMA)^2; Does this create an array of 600 components, with each element being equivalent to the square of the difference of the Y value and the corresponding SMA value in precisely the exact same point in the X axis? I.e. data2[1] = (Y[401] - SMA[401])^2 data2[2] = (Y[402] - SMA[402])^2 ... data2[600] = (Y[1000] - SMA[1000])^2 And then this second line: sigmanonshifted = Sqrt[Sum[data2[] / 600, I, 600]] Takes the amount of data2[1], info[2] ... data2[600] and divides it by 600,...