KurtosisArray (Function)

image\trumpet2.gif Disclaimer

The KurtosisArray function calculates the Kurtosis of values in an array.

Syntax

KurtosisArray(PriceArray, Size)

Returns (Double)

A numeric value containing the Kurtosis factor of the specified array.  If the function performs an illegal operation, or the declared arrays or Size is not greater than 3, the function will return a 0.

Parameters

Name

Type

Description

PriceArray

Numeric Array

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

Size

Numeric

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

Remarks

Kurtosis characterizes the relative peakedness or flatness of a distribution compared with the normal distribution. Positive Kurtosis indicates a relatively peaked distribution. Negative Kurtosis indicates a relatively flat distribution.

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 KurtosisArray 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.
 

  This array function is similar to Kurtosis except that you can build an array of values that does not necessarily include contiguous bar values.

Example

Assigns to Value1 the Kurtosis factor of the specified named array MyArray with 40 elements.

Array: MyArray[40](0);

{… add EL statements here to assign price values to array elements... }

Value1 = KurtosisArray(MyArray,40);