Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Formula Details
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.
Remarks
The Line chart type is a convenient chart type to display the formula output.
Example
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")
Chart1.DataManipulator.FinancialFormula (FinancialFormula.StandardDeviation, "15", "Series1:Y4", "Series3:Y");
See Also
Reference
Simple Moving Average Formula
System.Windows.Forms.DataVisualization.Charting
System.Web.UI.DataVisualization.Charting