This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
The TSMOVAVG function computes the moving average using a moving window. If the length of the moving average is "n", then, when computing the first n-1 moving average values, the moving averages depend on data before the first available data sample. Therefore, TSMOVAVG treats these moving averages as undefined and assigns NaN values.
There is a bug in the Financial Time Series Toolbox 2.0 (R13SP1) or earlier versions when using the TSMOVAVG function that it does not return NaN values for the first n-1 moving average values.
There are no workarounds.
Best Answer