AB_StdDev (Function)

image\trumpet2.gif Disclaimer

The AB_StdDev function calculates the standard deviation of the ActivityBar cells.

Syntax

AB_StdDev(NumDevs, Side)

Returns (Double)

The standard deviation of the ActivityBar cells on specified sides.

Parameters

Name Type Description
NumDevs Numeric Sets the number of standard deviations to calculate.
Side Numeric Sets the side of the ActivityBar on which the Standard Deviation will be calculated; options are LeftSide, RightSide and 2 for both sides.

Remarks

Standard Deviation is defined as the statistical measure of the dispersion or variation in a distribution, equal to the square root of the arithmetic mean of the squares of the deviations from the mean. The Side Input determines if the calculation will take place over the whole bar or just on a specific side.

You can specify how many standard deviations to calculate. If no parameter is used, one standard deviation is calculated.

Examples

Assigns to Value1 the first standard deviation of the cell prices on both sides of the current bar:

Value1 = AB_StdDev(1, 2);

Assigns to Value2 the two standard deviation of the cells drawn on the left of the current bar:

Value2 = AB_StdDev(2, LeftSide);

See Also

AB_Mode, AB_Median