Links

StandardDeviation(StdDev)

Description

The Standard Deviation (StdDev) is a tool used in statistics and probability calculation. It measures the dispersion of the values of a random variable around its median value. The Standard Deviation is used for the calculation of many indicators, such as for example, the Bollinger Bands.

Interpretation

A lower standard deviation implies that the data points are located very close to their median value. The trading application assumes that prices will return to their median value.

Usage

StdDev (int period)
StdDev (IDataSeries inSeries, int period)
StdDev (int period)[int barsAgo]
StdDev (IDataSeries inSeries, int period)[int barsAgo]

Return value

double
When using this method with an index (e.g. StdDev(14)[int barsAgo] ), the value of the indicator will be issued for the referenced bar.

Parameters

inSeries Input data series for the indicator
period Number of bars included in the calculations

Visualization

StandardDeviation(StdDev)

Example

//Output for the StdDev
Print("The current value for the standard deviation is: " + StdDev(14)[0]);