--- title: "Historical Volatility (HV)" slug: "historical-volatility" description: "Historical Volatility (HV) tracks past price fluctuations to assess market risk. Expressed as an annualized percentage, it’s based on the standard deviation of log returns over a selected period." updated: 2025-06-25T15:22:40Z published: 2025-06-25T15:22:40Z canonical: "devexperts.com/historical-volatility" --- > ## Documentation Index > Fetch the complete documentation index at: https://devexperts.com/dxcharts-docs/llms.txt > Use this file to discover all available pages before exploring further. # Historical Volatility (HV) [![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/v1.webp)](https://devexperts.com/dxcharts/?utm_source=kb&utm_medium=banner&utm_campaign=dxcharts) --- **Historical Volatility (HV)** measures the price dispersion of a security over a specified time period. It reflects the degree of past price fluctuations and provides insight into the asset's historical risk profile. HV is expressed as an annualized percentage and is derived from the standard deviation of relative price changes, measured using the natural logarithm, to estimate daily volatility. This value is then annualized according to the selected aggregation period. 1. To calculate HV, the relative price change is measured as the natural logarithm of the ratio between the current and previous price values. $r_i = \ln\left(\frac{P_i}{P_{i-1}}\right)$ 2. The average return is then calculated based on these logarithmic price changes. $\mu = \frac{1}{n - 1} \sum_{i=2}^{n} r_i$ 3. Standard deviation is used to measure how much the returns deviate from the mean, producing the daily volatility. $\sigma = \sqrt{\frac{\sum_{i=1}^{N} (R_i - \bar{R})^2}{N - 1}}$ 4. The daily volatility is converted into an annualized value by multiplying it by the square root of the number of periods in a year, based on the selected aggregation period. $\sigma_{\text{annual}} = \sigma_{\text{daily}} \times \sqrt{T}$ 5. The final Historical Volatility (HV) is obtained by applying this annualized scaling directly to the standard deviation. $\text{HV} = \sigma \times \sqrt{T}$ where: Pi – the price on the chosen period i Pi-1 – the price on the previous period n – the total number of the chosen period T – aggregation period | Aggregation period (T) | | --- | | Month | 12 | | Week | 52 | | Day | 252 | | Hour | 1,764 (252 trading days × 7 hours) | | Minute | 105,840 (252 × 7 × 60) | | Second | 6,350,400 (252 × 7 × 60 × 60) | ![Candlestick chart with volume bars and Historical Volatility indicator shown as a blue line in the lower panel. The line reflects recent changes in price variability, with a noticeable increase in volatility during the price drop, followed by stabilization as the market recovers.](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/image-1750864690003.png)Historical Volatility (HV) ### INPUTS | Input | Description | | --- | --- | | Basis | Annualization method. Available options: Annual, Monthly, Weekly, Daily | | Length | The number of bars used to calculate the HV | ### PLOTS The plot renders the data you are working with on the chart. You can show/hide a plot by clicking the corresponding item in the settings. Every plot has a set of basic settings you can change: color, weight, and type. | Plot | Description | | --- | --- | | HV | The Historical Volatility plot | | Color | | --- | | Click the color rectangle under the plot's name to open the palette. Use the slider at the bottom to set the opacity of the color. ![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/Color_picker.png)*Palette* To create a custom color: 1. Click![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/add_custom_color_icon.png)to open the color picker 2. By using the slider at the bottom, adjust the main color 3. Then, set a shade for the main color on the palette The custom-created colors are added to your palette. To remove a custom color, drag it out of the palette. | | Weight | | Change the value (in px) to adjust the thickness of the plot. | | Type | | The following plot types are available: - **Linear.** The plot is displayed as a line. - **Column.** The plot is displayed as a histogram. - **Difference**. The plot is displayed as a line which represents the difference between High and Low prices of the bar. - **Points**. The plot is displayed as points. - **Text above candle**. The plot is displayed as the price labels above candles on the chart. - **Text below candle**. The plot is displayed as the price labels below candles on the chart. - **Triangle above candle**. The plot is displayed as triangles above candles on the chart. - **Color candle**. The candles on candle-type charts are highlighted with specified colors. | ### OVERLAYING Check **Overlaying** to display the indicator on the main chart. Otherwise, the indicator is shown in a study pane down below. **Note**: To reset the settings, click **Restore to Default** next to the *SETTINGS: INDICATOR'S TITLE*