◆ TICKERBASEOpen TickerBase →
◆ TICKERBASE · INVESTING GLOSSARY

Volatility indicators: definitions and formulas

35 indicators you can add to a TickerBase chart, each with what it measures and the exact formula we plot.

Explained in full

Bollinger Bands
Bollinger Bands wrap price in an envelope that widens and narrows with volatility.
ATR
The average true range (ATR) measures how much a stock typically moves per bar, gaps included.

More volatility indicators

Std Deviation

Standard deviation measures how widely the last 20 closes are spread around their own average. Ours uses the population form (dividing by N) on the close by default and plots it in its own pane, in price units.

σ = √(Σ (P[i] − mean)² / 20)  over the last 20 bars

Donchian Channels

Donchian Channels draw the highest high and the lowest low of the last 20 bars, with a middle line halfway between. Our window includes the current bar, so a new high pushes the upper line up on the same bar instead of price closing above it.

Upper = HH20,  Lower = LL20,  Mid = (Upper + Lower) / 2

Keltner Channels

Keltner Channels set bands a multiple of the average true range around an exponential average of the close. Ours uses a 20-bar EMA (started from the first close), Wilder's ATR over 10 bars and a multiplier of 2, all drawn on the price pane.

Mid = EMA(C, 20),  Upper = Mid + 2 × ATR(10),  Lower = Mid − 2 × ATR(10)

Chop Zone

Chop Zone turns the slope of a 34-bar EMA into an angle and paints each bar by angle band: turquoise and greens for steep rises, yellow for a near-flat EMA (within ±0.71°), oranges and reds for falls. The slope is scaled by the 30-bar high-low range so the angle is comparable across prices.

angle = atan((EMA_t - EMA_t-1) / HLC3 × 25 × LL / (HH - LL)),  EMA 34,  HH / LL over 30 bars

Chandelier Exit

Chandelier Exit hangs trailing-stop lines from recent extremes: the long line sits 3 ATRs below the 22-bar highest high, the short line 3 ATRs above the 22-bar lowest low. ATR uses Wilder smoothing. Both lines are always drawn; ours does not switch between them.

Long = HH(22) - 3 × ATR(22),  Short = LL(22) + 3 × ATR(22)

Bollinger %B

Bollinger %B places the close inside the Bollinger bands: 0 at the lower band, 1 at the upper band, 0.5 on the middle line. The bands here are a 20-bar SMA of the close ± 2 population standard deviations. Values below 0 or above 1 mean the close is outside the bands.

%B = (close - Lower) / (Upper - Lower),  Upper / Lower = SMA(close, 20) ± 2 × σ(close, 20)

Bollinger Width

Bollinger BandWidth is the distance between the upper and lower Bollinger bands divided by the middle band, as a plain ratio (0.10 means the bands span 10% of the average). Defaults: 20-bar SMA, 2 standard deviations.

BBW = (Upper - Lower) / Middle = 2 × k × σ(close, 20) / SMA(close, 20),  k = 2

TTM Squeeze

TTM Squeeze flags when the Bollinger bands (20-bar SMA ± 2σ) sit fully inside a Keltner channel (20-bar EMA ± 1.5 × Wilder ATR 20), shown as dots on the zero line. Momentum bars show the regression endpoint of the close's distance from the average of the Donchian midline and the EMA.

Mom = linreg(close - (DonchianMid(20) + EMA(close, 20)) / 2, 20);  squeeze on when SMA ± 2σ lies inside EMA ± 1.5 × ATR

Hist Volatility

Historical volatility is the standard deviation of one-bar log returns over 20 bars, annualised with √252 and shown in percent. The 252 assumes daily bars; on other intervals the number is only nominal and should be compared within the same interval.

HV = σ(ln(close_t / close_t-1), 20) × √252 × 100

Choppiness

The Choppiness Index compares the sum of 14 true ranges with the net high-low range of those bars on a log scale, giving 0 to 100. If the bars mostly overlap, the sum is large relative to the range and the index is high; if price travels in one direction, it is low. Guide lines sit at 61.8 and 38.2.

CHOP = 100 × log10(Σ TR(14) / (HH(14) - LL(14))) / log10(14)

ATR %

ATR % expresses the average true range as a share of the current close. Because it is a percentage, it lets you compare how much a cheap stock and an expensive one typically move per bar.

ATR% = 100 × ATR(14) / close

ATR bands

ATR bands draw two lines on the price chart at a fixed number of average true ranges above and below each close. The centre is the close itself, not a moving average, so the bands jump with every bar.

Upper = close + k × ATR(14),  Lower = close - k × ATR(14),  k = 2

STARC bands

STARC bands (Stoller Average Range Channels) wrap a short simple average of the close in an envelope of two ATRs. Our version uses fixed settings: a 6-bar SMA and a 15-bar ATR, with no inputs to change.

Mid = SMA(close, 6),  Upper/Lower = Mid ± 2 × ATR(15)

Keltner width

Keltner width measures how wide a Keltner channel is, as a percentage of its midline. It turns the channel into one line in its own pane, which makes squeezes and expansions easy to spot.

Width% = 100 × 2 × k × ATR(20) / EMA(close, 20),  k = 2

Donchian width

Donchian width is the distance between the highest high and the lowest low of the last 20 bars, shown as a percentage of the current close (not of the channel midline).

Width% = 100 × (highest(high, 20) - lowest(low, 20)) / close

Chaikin Volatility

Chaikin Volatility tracks how fast the bar range is growing or shrinking. It smooths the high-low range with a 10-bar EMA, then takes the 10-bar percentage change of that average, drawn as a histogram.

CV = ROC(EMA(high - low, 10), 10)

Ulcer Index

The Ulcer Index measures downside pain only. Each bar's percentage distance below the highest close of the last 14 bars is squared, averaged over 14 bars and square-rooted, so deep and lasting drawdowns score highest.

Ulcer = sqrt(SMA(DD², 14)),  DD = 100 × (close - highest(close, 14)) / highest(close, 14)

Relative Volatility Index

The Relative Volatility Index works like RSI, but instead of the size of each price change it counts the 10-bar standard deviation, assigned to up bars or down bars. It asks whether volatility is building on rising or on falling closes.

RVI = 100 × RMA(up, 14) / (RMA(up, 14) + RMA(dn, 14)),  up = sd if close rose, dn = sd if close fell,  sd = stdev(close, 10)

Mass Index

The Mass Index (Dorsey) looks for range expansion without regard to direction. It divides a 9-bar EMA of the high-low range by an EMA of that EMA and sums the ratio over 25 bars, so the resting value is about 25.

Mass = sum(r / EMA(r, 9), 25),  r = EMA(high - low, 9)

Volatility O-H-L-C

Garman-Klass volatility estimates annualised volatility from each bar's open, high, low and close, which uses more information than closes alone. Our script averages the per-bar estimate over 20 bars and annualises with 252 bars per year.

GK% = 100 × sqrt(SMA(v, 20) × 252),  v = 0.5 × ln(H/L)² - (2 ln 2 - 1) × ln(C/O)²

Parkinson volatility

Parkinson volatility estimates annualised volatility from the high-low range of each bar alone. The squared log range is scaled by 4 ln 2, averaged over 20 bars and annualised with 252 bars per year.

Parkinson% = 100 × sqrt(SMA(v, 20) × 252),  v = ln(high / low)² / (4 ln 2)

Bar range %

Bar range % shows each bar's high-low range as a percentage of its close, as a histogram, with a 20-bar simple average of the same value on top.

Range% = 100 × (high - low) / close,  Average = SMA(Range%, 20)

Gap %

Gap % measures how far each bar opened from the previous bar's close, in percent. It isolates the overnight (or between-bar) move that a range-only measure misses.

Gap% = 100 × (open - close[1]) / close[1]

Volatility ratio

The volatility ratio compares the current bar's true range with the 14-bar average true range. It flags single bars that are unusually wide compared with recent ones.

Ratio = TR / ATR(14)

Drawdown from 52-week high

Drawdown from the 52-week high shows how far the close sits below the highest close of the last 252 bars, in percent. On daily bars that is roughly a year.

DD% = 100 × (close - highest(close, 252)) / highest(close, 252)

Acceleration bands

Acceleration bands (Headley) place an envelope around a 20-bar SMA of the close. Each bar's high is pushed up, and its low down, by four times its relative range, and those values are averaged over 20 bars.

Upper = SMA(high × (1 + 4 × (high - low) / (high + low)), 20),  Lower = SMA(low × (1 - 4 × (high - low) / (high + low)), 20),  Mid = SMA(close, 20)

Chande Kroll Stop

The Chande Kroll Stop draws two trailing lines on the price chart. It first subtracts (or adds) one ATR from the 10-bar extreme, then takes the extreme of that value over the last 9 bars, giving a long-side and a short-side stop level.

Long stop = lowest(highest(high, 10) - 1 × ATR(10), 9),  Short stop = highest(lowest(low, 10) + 1 × ATR(10), 9)

ATR trailing line

The ATR trailing line follows price at a distance of three ATRs and only moves in the trend's favour. While two consecutive closes stay above it, it can rise but never fall; below it, the mirror. When the close crosses it, the line flips to the other side.

Trail = max(Trail[1], close - a) in an uptrend,  min(Trail[1], close + a) in a downtrend,  a = 3 × ATR(14)

Standard Error Bands

Standard error bands draw a 21-bar linear regression line through the closes, with bands two standard errors away. The standard error measures how far closes scatter around the fitted line, so the bands are tight when price moves in a clean straight line.

Upper/Lower = LR ± 2 × SE,  LR = linreg(close, 21),  SE = sqrt((var(close) - b² × (n² - 1) / 12) × n / (n - 2))

Standard Error

Standard error plots, in its own pane, how much the last 14 closes scatter around their least-squares regression line. Unlike standard deviation it ignores the part of the movement the straight line explains, so a smooth trend reads low.

SE = sqrt((var(close, 14) - b² × (n² - 1) / 12) × n / (n - 2)),  n = 14

Volatility Close-to-Close

Close-to-close volatility is the classic historical volatility: the sample standard deviation of daily log returns over 10 bars, annualised by the square root of 252 and shown in percent.

Vol% = 100 × stdev(r, 10) × sqrt(10 / 9) × sqrt(252),  r = ln(close / close[1])

Volatility Zero Trend C2C

Zero-trend close-to-close volatility measures the spread of log returns around zero instead of around their average. A strong one-way trend therefore counts as volatility here, while the standard version would partly subtract it.

Vol% = 100 × sqrt(SMA(r², 10) × 10 / 9) × sqrt(252),  r = ln(close / close[1])

Volatility Index

Wilder's Volatility Index is the average true range over 10 bars, Wilder-smoothed, plotted in price units. It is the volatility input Wilder used for his trailing volatility stop.

VI = ATR(10) = RMA(TR, 10)

Open a live chart and add an indicator

All terms in the glossary · עברית · About TickerBase · Data methodology & sources · Privacy · Terms

TickerBase is provided for educational and informational purposes only. Nothing on this page is financial, investment, tax or legal advice, or a recommendation to buy, sell or hold any security. Figures are approximate and drawn from public filings. Past performance does not predict future results.