Open almost any brokerage app, tap a stock and switch to the full chart, and a menu of abbreviations appears: SMA, EMA, RSI, MACD, ATR, OBV, ADX and dozens more. Each one draws a new line, band or set of dots on top of the price or in a panel below it. Many people see these lines every day without knowing what they are.
This article answers a narrow question: what is each of these numbers, who first described it, and how is it calculated? It does not say how to trade with them, and it says nothing about what prices will do next. An indicator is arithmetic done on past prices and past trading volume. The goal here is to make that arithmetic visible, so the lines on the screen stop being a mystery.
A broader introduction to chart reading and how it compares with studying a company’s accounts is in the earlier article Reading the Books and Reading the Chart. This one goes indicator by indicator.
What an Indicator Is Made Of
Every indicator starts from the same raw material. A chart divides time into equal periods, such as one day, one week or 30 minutes. For each period it records five numbers: the first trade price (the open), the highest price (the high), the lowest price (the low), the last trade price (the close) and the number of shares traded (the volume).
An indicator takes some of these numbers for a fixed number of recent periods, called the look-back period and usually written as n, and turns them into one new number. Then it moves forward one period and repeats. Strung together, those numbers form the line on the chart.
The common indicators fall into five groups, according to what the arithmetic measures:
- Price averages smooth the price into one line: SMA, EMA, HMA and VWAP.
- Momentum oscillators measure how fast and how far the price has moved over the look-back period: RSI, the Stochastic Oscillator and MACD.
- Volatility measures describe how widely the price has been swinging: Bollinger Bands and the Average True Range.
- Volume measures keep a running total of trading volume, signed by how the price closed: On Balance Volume and the Accumulation Distribution Line.
- Direction and strength measures compare each period’s high and low with the previous period’s: the Average Directional Index with its two directional lines, and the Parabolic SAR.
Most of the names in this list come from a handful of people writing between the late 1950s and 2005. One of them, J. Welles Wilder, introduced four of the indicators below in a single 1978 book.
The formulas below use a few short labels: C for the close, H for the high, L for the low, V for the volume, and n for the look-back period. A small t marks the current period and t − 1 the one before, so Ct is today’s close and Ct−1 is yesterday’s.
The charts are drawn on real prices: the daily open, high, low, close and volume of the SPDR S&P 500 ETF Trust (SPY), an exchange-traded fund that tracks the S&P 500 index, from 21 April to 2 December 2026, as published in Nasdaq’s historical quotes. The fund is used only as an example. Every line on the charts was calculated from those prices with the formulas below, and checked with a second, separately written calculation.
Group 1: Price Averages
A price average replaces a jagged run of prices with one smoother line. StockCharts’ ChartSchool, a widely used charting reference, describes the basic trade-off: because moving averages are built from past data, they lag behind the price, and the longer the average, the more it lags. Each average in this group handles that lag in a different way.

Simple Moving Average (SMA)
The simple moving average has no single known inventor; it is the ordinary arithmetic mean, applied to a window that slides forward one period at a time. ChartSchool defines it as the average price over a set number of periods, and gives the example that a five-day SMA is the sum of the last five closes divided by five.
Where:
- SMAt is the simple moving average for period t, the latest period (a day, on a daily chart).
- Ct is the closing price of period t; Ct−1 is the close one period earlier, and so on back to Ct−n+1, the oldest close in the window.
- n is the number of periods in the window (5 in the example).
Example: five closes of $20, $21, $22, $21 and $23 give a five-day SMA of $21.40. Every price in the window counts equally.
Exponential Moving Average (EMA)
The exponential moving average gives the newest price more weight than older ones. ChartSchool lays out the calculation in three steps. The first EMA value is simply an SMA of the first n periods. A multiplier is set at 2 / (n + 1). After that, each new EMA moves part of the way from the previous EMA toward the latest close.
Where:
- n is the number of periods (5 in the example).
- k is the multiplier, the share of the gap between the latest close and the previous EMA that is added each period.
- EMAt is the exponential moving average for the latest period t; EMAt−1 is the previous one.
- Ct is the latest closing price.
Example: for a five-day EMA the multiplier k is 0.3333. If the previous EMA was $21.40 and the next close is $24, the new EMA is $22.27. A simple average of the same window would move less, because $24 would count as only one fifth of it.
Hull Moving Average (HMA)
The Hull moving average is the newest indicator in this article. ChartSchool says it was developed by Alan Hull in 2005, with the aim of reducing the lag of an ordinary average while keeping the line smooth. It is built from weighted moving averages (WMA), in which the newest price gets the largest weight. Fidelity’s indicator guide gives the example of a five-period WMA: the newest price is multiplied by 5, the one before by 4, and so on down to 1 for the oldest, and the total is divided by the sum of the weights, 15.
Where:
- WMAn is the weighted moving average over n periods.
- Ct is the newest closing price, Ct−1 the one before it, down to Ct−n+1, the oldest in the window.
- n, n − 1, …, 1 are the weights, from the newest price to the oldest; the denominator is the sum of the weights.
- n is the number of periods (5 in the Fidelity example, with weights summing to 15).
The HMA combines three of these averages. It takes twice a short WMA, subtracts a long one, and then smooths the result with another WMA:
Where:
- HMAn is the Hull moving average with a period of n.
- WMAn is the weighted moving average over the full n periods; WMAn/2 is the one over half as many periods.
- The outer WMA, whose period is the square root of n, smooths the difference 2 × WMAn/2 − WMAn. Period counts that are not whole numbers are rounded.
Period counts that are not whole numbers are rounded. For a 20-day HMA, the three averages use 10, 20 and 4 periods (the square root of 20 is about 4.47).
Example: a 4-day HMA uses averages of 2, 4 and 2 periods. With the same five closes, oldest first ($20, $21, $22, $21, $23), the first step is done on day 4 and on day 5, and the last step averages those two results:
Volume-Weighted Average Price (VWAP)
VWAP is an average in which each price counts in proportion to how many shares traded at it. Its best-known early description is academic. In March 1988 the Journal of Finance published a paper by Stephen Berkowitz, Dennis Logue and Eugene Noser that proposed the volume-weighted average price over the trading day as a way to measure what institutional trades really cost. ChartSchool likewise says VWAP was first developed by institutional investors.
The standard version is calculated within one trading day. For each intraday period, a “typical price” is taken as the average of the high, low and close. ChartSchool describes the rest: multiply each typical price by that period’s volume, keep running totals of those products and of volume, and divide one by the other. The calculation starts fresh at the open and ends at the close; ChartSchool notes that VWAP is not defined for daily, weekly or monthly periods.
Where:
- i is the number of a period inside the trading day, counted from the open (1, 2, …, m).
- m is the number of periods since the open.
- Hi, Li and Ci are the high, low and close of period i.
- TPi is the typical price of period i, the average of its high, low and close.
- Vi is the volume of period i, the number of shares traded.
- ∑ means the sum over periods 1 to m: the top adds up price × volume, the bottom adds up volume.
Example: if the first 30 minutes trade 1,000 shares at a typical price of $50 and the next 30 minutes trade 3,000 shares at $51, VWAP after one hour is $50.75, closer to $51 because more shares traded there.
The charts in this article use daily prices, so VWAP is not drawn on them: it needs the prices and volume of each part of a single trading day.
Group 2: Momentum Oscillators
The Commodity Futures Trading Commission’s glossary defines momentum in technical analysis as the relative change in price over a specific time interval. An oscillator expresses that change as a number that swings back and forth, either inside a fixed range such as 0 to 100 or around zero.
Relative Strength Index (RSI)
ChartSchool credits the RSI to J. Welles Wilder, who featured it in his 1978 book New Concepts in Technical Trading Systems. The default look-back period is 14, and the result always lies between 0 and 100.
The RSI compares the average size of the up moves with the average size of the down moves. Each close is compared with the one before. A rise counts as a gain, a fall as a loss (written as a positive number). The first average gain is the sum of gains over 14 periods divided by 14, and the same for losses. After that, each new average keeps 13/14 of the previous average and adds 1/14 of the latest gain or loss, a smoothing method ChartSchool compares to an exponential moving average. The average loss is smoothed the same way.
Where:
- average gaint is the average gain at period t; average gaint−1 is the one at the previous period.
- gaint is the gain in period t: how much the close rose above the previous close, or 0 if it fell.
- 14 is the look-back period and 13 is 14 − 1. The average loss is smoothed the same way, with losst, the size of the fall, in place of the gain.
Where:
- RS is the relative strength, the average gain divided by the average loss (both over 14 periods).
- RSI is the Relative Strength Index, from 0 to 100.
Example: if the average gain is $0.60 and the average loss is $0.40, the RSI is 60. If the gains and losses are equal in size, RS = 1 and RSI = 50.
Stochastic Oscillator
The Stochastic Oscillator measures where the latest close sits within the range of recent highs and lows. ChartSchool says George C. Lane developed it in the late 1950s. It has two lines, %K and %D, and both range from 0 to 100. The default look-back period is 14, and %D is a three-period simple average of %K.
Where:
- %K is the stochastic line, from 0 to 100; Ct is the latest close.
- Lmin is the lowest low and Hmax the highest high of the last n periods (n = 14 by default).
- %D is the signal line, the simple moving average of %K over 3 periods (SMA3).
Example: if the lowest low of the last 14 days is $40, the highest high is $50 and today’s close is $48, then %K is 80. A close at the 14-day low gives 0; a close at the 14-day high gives 100.
This is Lane’s original version, which ChartSchool calls the Fast Stochastic Oscillator and describes as rather choppy. ChartSchool also describes the Slow Stochastic Oscillator, which smooths %K once more with a three-period average:
Where:
- fast %K is %K from the formula above.
- slow %K is the fast %K smoothed with a 3-period simple moving average (SMA3).
- slow %D is the slow %K smoothed once more in the same way.
The momentum chart at the end of this group shows both: the fast %K as a thin, jagged line and the slow %K and %D as smoother ones.
Moving Average Convergence/Divergence (MACD)
According to ChartSchool, the MACD was developed by Gerald Appel in the late seventies. It is built from three pieces, all using exponential moving averages of the close.
Where:
- C is the closing price.
- EMA12(C) and EMA26(C) are the 12-period and 26-period exponential moving averages of the close.
- MACD line is the difference between those two averages.
- signal line is the 9-period exponential moving average of the MACD line (EMA9).
- histogram is the MACD line minus the signal line.
Unlike the RSI and the Stochastic Oscillator, the MACD has no fixed upper or lower limit. ChartSchool calls it unbounded. Its values are in the same units as the price, so a $500 share and a $20 share produce MACD readings of very different sizes.

Group 3: Volatility Measures
The CFTC glossary describes historical volatility as a statistical measure, specifically the annualized standard deviation, of an instrument’s price over a specified number of past trading days. The two indicators in this group put a similar idea on the chart, one as bands around the price and one as a single line.
Bollinger Bands
John Bollinger’s own website says the bands were created by John Bollinger in the early 1980s, out of the need for bands that adjust by themselves and the observation that volatility changes over time rather than staying fixed, as was widely assumed then.
The bands are three lines. ChartSchool gives the standard formulas, with default settings of 20 periods and 2 standard deviations.
Where:
- SMA20 is the simple moving average of the last 20 closes.
- σ20 is the standard deviation of the last 20 closes.
- 2 is the number of standard deviations (the default setting).
- middle band, upper band and lower band are the three lines drawn on the chart.
A standard deviation measures how far the 20 prices are spread around their own average. When the prices in the window are close together, the bands are narrow; when they are spread out, the bands are wide.
Average True Range (ATR)
ChartSchool credits the ATR to Wilder as well, introduced in the same 1978 book. It measures volatility in dollars, and ChartSchool stresses that it does not show price direction, only the size of the moves.
It starts from the true range (TR) of each period, which is the largest of three distances:
- this period’s high minus this period’s low;
- this period’s high minus the previous close, as a positive number;
- this period’s low minus the previous close, as a positive number.
The second and third distances capture gaps, when a share opens well above or below the previous close. The first ATR is the average of the first 14 true ranges. After that the same smoothing as in the RSI is used.
Where:
- TRt is the true range of period t.
- Ht and Lt are the high and low of period t; Ct−1 is the previous close.
- |…| means the absolute value (the distance as a positive number); max picks the largest of the three.
Where:
- ATRt is the average true range at period t; ATRt−1 is the one at the previous period.
- TRt is the true range of period t, from the formula above.
- 14 is the look-back period and 13 is 14 − 1.
Example: if yesterday’s close was $50, today’s high is $53 and today’s low is $51, the high-low range is $2, but the true range is $3, the distance from $50 to $53.

Group 4: Volume Measures
Volume measures turn the number of shares traded into a running total. The total goes up or down depending on how the price closed. The level of the total has no meaning on its own; ChartSchool says of OBV that its absolute value is not important, because the running total has to start somewhere.
On Balance Volume (OBV)
ChartSchool says OBV was originally developed by Joe Granville, who first explained it in his 1963 book Granville’s New Key to Stock Market Profits. The rule is a simple signed total:
Where:
- OBVt is On Balance Volume at period t; OBVt−1 is the value at the previous period.
- Vt is the volume of period t, the number of shares traded.
- Ct and Ct−1 are the closes of period t and of the previous period.
The whole day’s volume is added or subtracted, whether the close moved by one cent or by five dollars.
Accumulation Distribution Line (ADL)
The Accumulation Distribution Line, also written A/D Line, was developed by Marc Chaikin, who, according to ChartSchool, originally called it the Cumulative Money Flow Line. Instead of comparing today’s close with yesterday’s, it looks at where the close sits within today’s own high-low range.
Where:
- MFMt is the money flow multiplier of period t, a number from −1 to +1.
- Ct, Ht and Lt are the close, high and low of period t.
- Vt is the volume of period t; MFMt × Vt is the money flow volume.
- ADLt is the Accumulation Distribution Line at period t; ADLt−1 is the value at the previous period.
The multiplier ranges from +1 to −1. A close at the day’s high gives +1, so all of the day’s volume is added. A close at the low gives −1, so all of it is subtracted. A close exactly in the middle gives 0.
Example: with a high of $52, a low of $48, a close of $51 and volume of 1 million shares, the multiplier is 0.5, so 500,000 is added to the line.

Group 5: Direction and Strength Measures
The last group compares each period’s high and low with the previous period’s, to describe which way the price has been moving and how consistently. Both indicators here come from Wilder’s 1978 book.
Average Directional Index (ADX) and the Directional Indicators (+DI and −DI)
ChartSchool describes the ADX, the Plus Directional Indicator and the Minus Directional Indicator as one group developed by Welles Wilder. The calculation has several steps, usually with a 14-period setting:
- For each period, find the true range (as in the ATR), the plus directional movement, +DM (how far the high rose above the previous high), and the minus directional movement, −DM (how far the low fell below the previous low). Only the larger of the two directional movements counts for that period; the other is set to zero.
- Smooth all three over 14 periods with Wilder’s method.
- Divide the smoothed movements by the smoothed true range, then compare the two results:
Where:
- +DI and −DI are the plus and minus directional indicators.
- smoothed +DM and smoothed −DM are the plus and minus directional movements (how far the high rose above the previous high, and how far the low fell below the previous low), smoothed over 14 periods with Wilder’s method.
- smoothed TR is the true range smoothed in the same way.
- 100 turns the ratio into a percentage.
Where:
- DX is the directional movement index, from 0 to 100; |…| means the absolute value of the difference between +DI and −DI.
- ADXt is the average directional index at period t; ADXt−1 is the one at the previous period.
- DXt is DX at period t.
- 14 is the look-back period and 13 is 14 − 1.
The first ADX is a 14-period average of DX; after that, the formula above is used.
The two DI lines show the balance between upward and downward movement. The ADX, as ChartSchool puts it, measures the strength of the movement regardless of its direction: it rises when one of the two DI lines clearly outweighs the other, whichever one it is.
Parabolic SAR
ChartSchool says Wilder originally called this indicator the “Parabolic Time/Price System” and introduced it in the same 1978 book. SAR stands for “stop and reverse.” On a chart it appears as a row of dots below the price while the price has been rising and above it while the price has been falling.
For a rising run:
Where:
- SARt is the value of the dot for period t; SARt−1 is the previous dot.
- AF is the acceleration factor.
- EP is the extreme point.
The extreme point is the highest high of the current rising run (or the lowest low of a falling run). The acceleration factor starts at 0.02 and grows by 0.02 each time a new extreme point is set, up to a maximum of 0.20. The result is a line of dots that closes in on the price faster the longer a run lasts. When the price crosses the dots, the calculation flips to the other side and starts again from the extreme point.

Same Prices, Different Numbers
Every indicator in this article is calculated only from past prices and volume. Two people looking at the same share can still see different numbers, because the result depends on choices made before the calculation starts.
The look-back period is the main one. A 10-day and a 50-day SMA of the same share are different lines, and the defaults quoted above (14 for the RSI and ATR, 20 and 2 for Bollinger Bands, 12, 26 and 9 for the MACD) are conventions from the people who described the indicators, not rules.
The smoothing method is another. The ATR and RSI use Wilder’s smoothing, which keeps 13/14 of the previous value; a version that uses a plain 14-day average of the same inputs gives somewhat different numbers. The starting point matters for running totals: OBV and the Accumulation Distribution Line depend on the first day included, and VWAP depends on when the trading day began.
Finally, the data itself matters. An indicator calculated on daily closes, on weekly closes or on 30-minute bars is a different series, even for the same share.
Back at the Chart Screen
The abbreviations in the brokerage app now have a history and a formula behind them. Most fit in a few lines of arithmetic: averages of past closes (SMA, EMA, HMA), an average weighted by volume (VWAP), ratios of gains to losses or of a close to its range (RSI, Stochastic), the gap between two averages (MACD), measures of spread (Bollinger Bands, ATR), signed running totals of volume (OBV, A/D Line), and comparisons of each high and low with the one before (ADX, Parabolic SAR).
Knowing the arithmetic makes it possible to read each line for what it is: a summary of what the price and volume have already done, under settings that someone chose.
Sources
-
StockCharts ChartSchool, “Moving Averages: Simple and Exponential.” SMA and EMA calculation, multiplier, lag.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/moving-averages-simple-and-exponential -
Fidelity Learning Center, “Weighted Moving Average (WMA).” Five-period example and weights.
https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/wma -
StockCharts ChartSchool, “Hull Moving Average (HMA).” Alan Hull, 2005, and the calculation.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/hull-moving-average-hma -
Berkowitz, Logue and Noser, “The Total Cost of Transactions on the NYSE,” The Journal of Finance, vol. 43, no. 1 (March 1988), pp. 97 to 112 (library record with abstract).
https://bvbvf1.bib-bvb.de/vufind/PrimoRecord/cdi_proquest_miscellaneous_36911194 -
StockCharts ChartSchool, “Volume-Weighted Average Price (VWAP).” Typical price, calculation, daily reset.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/volume-weighted-average-price-vwap -
CFTC Glossary, “M”: momentum.
https://www.cftc.gov/LearnAndProtect/EducationCenter/CFTCGlossary/glossary_m.html -
StockCharts ChartSchool, “Relative Strength Index (RSI).” Wilder, 1978, calculation, 14-period default, 0 to 100 range.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/relative-strength-index-rsi -
StockCharts ChartSchool, “Stochastic Oscillator (Fast, Slow, and Full).” George C. Lane, late 1950s, %K and %D.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/stochastic-oscillator-fast-slow-and-full -
StockCharts ChartSchool, “MACD (Moving Average Convergence/Divergence Oscillator).” Gerald Appel, late 1970s, formulas.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/macd-moving-average-convergence-divergence-oscillator -
CFTC Glossary, “H”: historical volatility.
https://www.cftc.gov/LearnAndProtect/EducationCenter/CFTCGlossary/glossary_h.html -
John Bollinger, BollingerBands.com. Origin in the early 1980s.
https://bollingerbands.com/ -
StockCharts ChartSchool, “Bollinger Bands.” Formulas and default settings.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/bollinger-bands -
StockCharts ChartSchool, “Average True Range (ATR).” Wilder, 1978, true range, smoothing.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-true-range-atr -
StockCharts ChartSchool, “On Balance Volume (OBV).” Joe Granville, 1963, calculation.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/on-balance-volume-obv -
StockCharts ChartSchool, “Accumulation/Distribution Line.” Marc Chaikin, original name, calculation.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/accumulation-distribution-line -
StockCharts ChartSchool, “Average Directional Index (ADX).” Wilder, 1978, +DI, −DI, DX and ADX.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-directional-index-adx -
StockCharts ChartSchool, “Parabolic SAR.” Wilder, 1978, original name, calculation.
https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-overlays/parabolic-sar -
Nasdaq.com, “SPDR S&P 500 ETF Trust (SPY) Historical Quotes.” Daily open, high, low, close and volume used for the charts.
https://www.nasdaq.com/market-activity/etf/spy/historical
