In this lesson, you will learn:
The Standard Deviation indicator is a fundamental statistical tool applied to financial markets to measure volatility. In simple terms, it quantifies how much the price of an asset has deviated from its recent average price. A high Standard Deviation value implies that prices have been swinging widely, indicating high volatility. Conversely, a low value suggests that prices have been stable and trading within a tight range, indicating low volatility.
It is a crucial component of many other indicators, most notably Bollinger Bands, which are set at two standard deviations above and below a simple moving average. However, when used as a standalone indicator, it provides a direct gauge of market volatility, helping traders anticipate the potential magnitude of future price moves.

On a chart, the indicator is typically plotted as a single line in a separate pane below the price. This line rises and falls, giving a visual representation of expanding and contracting volatility.
Standard Deviation is a precise statistical measure. For a given lookback period ‘n’, the calculation involves several steps. The default period for most trading platforms is 20.
First, we calculate the simple moving average (SMA) of the closing prices for the period ‘n’.
Where:
Next, we calculate the variance. This is the sum of the squared differences between each closing price and the SMA, divided by the number of periods.
Finally, the Standard Deviation () is the square root of the variance.
This value is what is plotted as the Standard Deviation indicator line on the chart.
Let’s walk through a simplified example with a 5-period lookback period (n=5). Assume the closing prices for the last 5 periods were: 100, 102, 101, 103, and 104.
| Step | Action | Calculation | Result |
|---|---|---|---|
| 1 | Calculate the 5-period SMA | (100 + 102 + 101 + 103 + 104) / 5 | 102 |
| 2 | Find the deviation of each price from the SMA | (100-102), (102-102), (101-102), (103-102), (104-102) | -2, 0, -1, 1, 2 |
| 3 | Square each deviation | (-2)^2, (0)^2, (-1)^2, (1)^2, (2)^2 | 4, 0, 1, 1, 4 |
| 4 | Sum the squared deviations to get the variance | (4 + 0 + 1 + 1 + 4) / 5 | 2.0 |
| 5 | Take the square root of the variance | sqrt(2.0) | 1.414 |
The Standard Deviation for this 5-period window is 1.414. This is the value that would be plotted for the current bar.
Interpreting the indicator is straightforward:
A high reading on the indicator signals that the market has recently experienced a large price move. This suggests that volatility is at an extreme and is likely to revert to its mean. In practical terms, after a large trend move, the market often enters a period of consolidation or correction. A trader might see a high SD reading as a signal to tighten stops or take profits on a trend-following trade, as the momentum might be fading.

In the chart above, the shaded area highlights a period of significant price movement. Note how the Standard Deviation indicator below peaks during this phase, signalling an expansion of volatility.
An extremely low standard deviation reading indicates a market that is consolidating tightly. This period of low volatility often precedes a significant price expansion. Traders watch for these “squeeze” conditions to position themselves for a potential breakout. A low SD value is a warning that a large move is likely imminent. This is the core concept behind strategies like the Bollinger Band Squeeze (which is based on Standard Deviation).

The chart above shows a period where the price is range-bound. The Standard Deviation indicator is at a very low level. This quiet period is followed by a sudden, powerful breakout, as the stored energy is released.
The Standard Deviation indicator is rarely used for direct buy or sell signals. Instead, it serves as a filter or a setup condition for other strategies.
The default setting for this indicator is 20 periods. Adjusting this can have a significant impact on its behaviour.
For most systematic strategies, the standard 20-period setting provides a reliable balance. Traders should backtest thoroughly before using a non-standard setting.
In the context of the NSE, the Standard Deviation indicator is particularly useful on daily and hourly timeframes for NIFTY, BANKNIFTY, and large-cap stocks. On these timeframes, periods of low volatility compression (the “squeeze”) often lead to clean, powerful breakouts that are actionable for swing and intraday traders. On lower timeframes (e.g., 5-minute), the indicator can become noisy and less reliable for identifying major volatility shifts.
The Standard Deviation indicator is an indispensable tool for any serious trader focused on volatility. It provides a clear, quantitative measure of how active or quiet a market is.
Key takeaways include:
By understanding how to read and apply the Standard Deviation indicator, you gain a deeper insight into the market’s rhythm, allowing you to better time your entries and anticipate significant price movements.