Standard Deviation Formula

The standard deviation formula is used to indicate volatility. It calculates the difference between values like the close price and their moving average. A higher standard deviation indicates higher volatility.

Syntax

Chart.DataManipulator.FinancialFormula(
    FinancialFormula.StandardDeviation,
    "Period",
    "High:Low:Close",
    " StdDev")

Parameters

This formula takes one required parameter.

Period
Period for calculating the moving average for the standard deviation.

Input Values

This formula takes one input Y value.

Price
Price for which the standard deviation is calculated.

Output Value

This formula outputs one Y value.

StdDev
Standard deviation.

The Line chart type is a convenient chart type to display the formula output.

The following example takes input from Series1's Y value for the close price (Series1:Y4) and outputs the standard deviation on Series3 (Series3:Y). It uses a period of 15 days to calculate the moving average.

Chart1.DataManipulator.FinancialFormula (FinancialFormula.StandardDeviation, "15", "Series1:Y4", "Series3:Y");




Build Date:

2012-08-02
Show: