Volatility
Volatility shows the volatility from the bar prices (open, high, low, close) — in percent per bar. These estimates are more accurate than ones based on closes alone, and percent makes symbols comparable with each other. In the Percentile and Ratio modes the indicator shows whether volatility is contracted or expanded compared with a long window.
The indicator is drawn in a separate area below the chart.
How to read it
What the line shows is set by the Show parameter:
- Value — the volatility itself in percent per bar;
- Percentile — where the current value is among the past values of the long window, from 0 to 100: above 80 is high volatility, below 20 is low;
- Ratio — the current volatility divided by the volatility of the long window: over 1.5 is expansion, under 0.7 is contraction.
A low percentile together with a Squeeze is a breakout setup.
This is the volatility per bar, not annual volatility. On second bars, where High often equals Low, the estimate is understated.
How it is calculated
- For each bar, the variance is calculated from its prices with the formula chosen in Estimator:
- Parkinson — from the High–Low range only;
- Garman–Klass — from the range and the body of the bar;
- Rogers–Satchell — unbiased in a trend;
- Yang–Zhang — also counts the gaps between bars (evening session, clearing).
- The variance is averaged over Period bars; the volatility is its square root in percent.
- In the Percentile mode — the share of past values over Long period that are below the current one (equal values count as half), from 0 to 100.
- In the Ratio mode — the volatility over Period divided by the volatility over Long period with the same estimator.
With the default settings the first value appears on the 20th bar (21st for Yang–Zhang), the percentile on the 220th, the ratio on the 200th. If a bar price is zero or below, the line breaks.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Estimator | The formula over the bar prices: Parkinson, Garman–Klass, Rogers–Satchell or Yang–Zhang. | Garman–Klass |
| Period | How many last bars the volatility is averaged over. At least 2. | 20 |
| Show | Value — the volatility in percent per bar; Percentile — where it is among the past values of the long window (0–100); Ratio — to the volatility of the long window. | Value |
| Long period | The comparison window in bars: how many past values the percentile ranks among, or the period of the long volatility for the ratio. Visible in the Percentile and Ratio modes. At least 2. | 200 |
Plots
| Parameter | Description | Default |
|---|---|---|
| Volatility | The line of the volatility, its percentile or ratio. | Orange, solid, width 1 |
Levels
The levels are visible in the settings and on the chart only in their mode.
| Parameter | Description | Default |
|---|---|---|
| Percentile: high | High volatility by the percentile. Percentile mode. | 80, blue |
| Percentile: low | Low volatility by the percentile. Percentile mode. | 20, blue |
| Ratio: expansion | Volatility expansion. Ratio mode. | 1.5, blue |
| Ratio: contraction | Volatility contraction. Ratio mode. | 0.7, blue |
Style
The Volatility line has the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.
Each level has the Show, Value, Color, Width and Style fields. A visible level shows its value on the right scale.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.