MOVSTD

Purpose:

Calculates the moving standard deviation of a series.

Syntax:

MOVSTD(series, N, rampflag)

series

-

A series or table.

N

-

An integer, the number of points to compute the standard deviation as the series is processed.

rampflag

-

Optional. An integer, endpoint averaging flag.

0:

down

1:

up (default)

Returns:

A series or table.

Example:

W1: {1, 2, 4, 7}

W2: movstd(W1, 3)

 

returns the series {0, 0.612, 1.528, 2.517, 1.837, 0}

 

W3: movstd(W1, length(W1))

 

W3[length(w1)] == stdev(w1) == 2.645751

Remarks:

For speed, this routine uses the built-in function MOVAVG .

See Also:

MOVAVG

MOVRMS

STDEV