Loading...
OptionPerks mobile Logo OptionPerks Logo

Exponential Moving Average Basics

Exponential moving average (EMA) is a technical overlay that averages a set of data points and gives greater weight to new data points. Learn how to use EMA in technical analysis.
View risk disclosures

Moving averages are fundamental tools in technical analysis, smoothing a series of data points to reveal underlying trends. The exponential moving average (EMA) is a weighted average of data points, giving greater preference to newer data, reducing lag in responsiveness to price movements.

Exponential Moving Average Example

EMAs and simple moving averages (SMAs) are popular indicators to help traders identify trends. The choice between them depends on the desired responsiveness to trend changes. EMAs are widely used in various technical indicators, such as the MACD.

SMA vs. EMA Comparison

Traders use multiple EMAs for support and resistance levels, generating buy/sell signals, and confirming trades. The calculation involves determining weights for today's and yesterday's data points, addressing the "drop-off effect" seen in SMAs.

Exponential Moving Average Example

How to Calculate an Exponential Moving Average

To calculate an EMA:

  1. Determine the weight of today’s data point (shorter moving averages have heavier weights).
  2. Determine the weight of yesterday’s EMA.
  3. Incorporate today’s closing price into the full EMA calculation.

Best Exponential Moving Average Length

Popular EMA lengths include 12-day and 26-day for short-term traders, and 50-day and 200-day for longer-term traders. The choice depends on balancing responsiveness to trend changes and avoiding false signals from outliers. Align the length with your trading timeframe.

Using Exponential Moving Averages in Stock Trading

Traders use EMAs for entry and exit signals, relying on crossovers and support/resistance levels. Crossovers, where two moving averages or a moving average and a security’s price cross, often serve as systematic entries and exits. EMAs are more effective in trending markets and are often used with other momentum signals.

FAQs

What is an exponential moving average?

An exponential moving average (EMA) is the weighted average of a set of data points where new data points receive greater weight in the calculation. EMAs help traders identify trends by reducing lag in responsiveness to price movements.

How is exponential moving average calculated?

To calculate an EMA, determine the weight of today’s data point (shorter moving averages have heavier weights), determine the weight of yesterday’s EMA, and incorporate today’s closing price into the full EMA calculation.

What does 20-day EMA mean?

An EMA with a 20-day lookback period uses the last 20 daily candles. Moving averages can use any timeframe, such as minutes or hours.