StdErrorArray (Function)

image\trumpet2.gif Disclaimer

The StdErrorArray function calculates the standard error of values in an array.

Syntax

StdErrorArray(PriceArray, Size)

Returns (Double)

The standard error of values in an array..

Parameters

Name

Type

Description

PriceArray

Numeric Array

Specifies the name of a numeric array containing values upon which the standard error is calculated.

Size

Numeric

Sets the number of data elements (size) in the array to evaluate.

Remarks

The standard error calculation is a measure of the standardized variation around the regression line, as based upon the specified array. This calculation provides an approximation of the accuracy of the regression line.

The value for the Size input parameter should always be a whole number greater than 0 and is typically equal to the number of data elements in the array.

The StdErrorArray function only works with one-dimensional arrays.

 The first element of the array that is used by this function is element 1. Element 0 of the array is not used.

Example

Assigns to Value1 the 10 bar moving average of the specified array.

Array: myArray[10](0);

{… (assign values to array) }

Value1 = StdErrorArray(myArray, 10);