Indicator Help
Standard Deviation
Not a member? Subscribe now!
Standard deviation is a statistical term that provides a good indication of volatility. It measures how widely values (closing prices for instance) are dispersed from the average. Dispersion is the difference between the actual value (closing price) and the average value (mean closing price). The larger the difference between the closing prices and the average price, the higher the standard deviation will be and the higher the volatility. The closer the closing prices are to the average price, the lower the standard deviation and the lower the volatility.
Calculation
The steps for calculating a 20-period standard deviation are as follows:
- Calculate the simple average (mean) of the closing price. i.e., Sum the last 20 closing prices and divide by 20.
- For each period, subtract the average closing price from the actual closing price. This gives us the deviation for each period.
- Square each period's deviation.
- Sum the squared deviations.
- Divide the sum of the squared deviations by the number of periods (20 in our example below).
- The standard deviation is then equal to the square root of that number.

The 20-period standard deviation for the data above is 6.787. Note that this is the "full population" version of the Standard Deviation. There is a different kind of Standard Deviation calculation that is used when you are taking a statistical sample of a population, but that version is not used in technical analysis since all of the data points are known.
Parameters
- Period (20) - the number of bars on the chart
|