Markets.com Logo
euEnglish
LoginSign Up

Understanding the Exponential Weighted Moving Average (EWMA)

Jan 22, 2024
9 min read
Table of Contents
  • 1. Calculating the exponential weighted moving average
  • 2. Using EWMA in trading strategies
  • 3. Trend following strategies
  • 4. Mean reversion strategies
  • 5. Combining other indicators
  • 6. Pros and cons of exponential weighted moving average
  • 7. Pros - Smooths noisy price data
  • 8. Pros - Quickly reacts to latest price shifts
  • 9. Cons - The lagging effect still exists
  • 10. Cons - Requires smoothing factor tuning
  • 11. As a final thought,
  • 12. Use the exponential weighted moving average indicator when trading on markets.com

Understanding The Exponential Weighted Moving Average

 

The exponentially weighted moving average (EWMA) is a type of moving average that places greater weight and significance on the most recent data points. Many traders prefer the EWMA over the simple moving average (SMA) as it reflects the latest price activity more closely.

In this article, find out how we figure out EWMA, see how it helps us in trading, and learn about its pros and cons.

 

Calculating the exponential weighted moving average

The exponential weighted moving average calculation uses a smoothing factor commonly represented by the Greek symbol alpha (α). The alpha sets how quickly older price data decays to less importance, with higher alpha discounts making the EWMA more responsive to recent changes.

Here is the formula for calculating an exponential weighted moving average:

EWMA = (Closing Price x Smoothing Factor) + (Previous EWMA x (1 - Smoothing Factor))

To break this EWMA formula down:

  • The “Closing Price” is the latest period’s close price for the asset. This could be the current daily, hourly, etc., close price.
  • The “Smoothing Factor”, represented by alpha (α), is a number between 0 and 1 that applies greater weight to recent data. A higher alpha value makes the EWMA faster-moving.
  • The “Previous EWMA” is the EWMA calculation result from the past period.

The smoothing factor chosen depends on your trading style and time frame. Shorter-term traders tend to use higher smoothing factors. Longer-term investors use lower smoothing factors for a slower-moving average.

Below is a step-by-step example of calculating an exponential weighted moving average:

Recent closing prices: $56, $53, $58, $62 (with oldest at the beginning)

Chosen alpha smoothing factor: 0.4

  1. As there is no previous EWMA yet, the first calculation will use $56 as the closing price along with the 0.4 alpha factor: EWMA = ($56 x 0.4) + (No previous EWMA yet x 0)
  2. EWMA = $22.40
  3. The following calculation uses the $53 close price and the previous step EWMA of $22.40: EWMA = ($53 x 0.4) + ($22.40 x 0.6) EWMA = $38.04
  4. Next calculation with a $58 closing price and EWMA of $38.04: EWMA = ($58 x 0.4) + ($38.04 x 0.6)
  5. EWMA = $45.63
  6. Final shown calculation using the most recent $62 close and previous $45.63 EWMA: EWMA = ($62 x 0.4) + ($45.63 x 0.6) EWMA = $51.85

This example shows how each new closing price impacts the EWMA result less and less as the previous data is accounted for via that (1 - alpha factor) element. The older data points exponentially decay in relevancy but still slightly influence the current EWMA value.

Traders will repeat this exponential weighted moving average calculation for each new closing period, either daily, hourly, etc. Using the EWMA in analysis and trading strategies can help spot trend reversals earlier than less responsive simple or traditional moving averages. The versatility and adaptability of the exponential weighted moving average make it a popular technical indicator with traders in many markets.

Here’s an interesting read for you: What Is A Commodity Profit Calculator?

 

Using EWMA in trading strategies

The exponentially weighted moving average is popular amongst traders for identifying trends, planning entries and exits, and combining it with other strategy analysis methods. Its ability to smooth data and quickly respond to recent price moves makes it uniquely valuable.

Trend following strategies

One of the most common uses for the exponential weighted moving average is in trend-following and breakout strategies. Traders will look for the price to trade above or below the EWMA to signal the start of a new trend.

As the EWMA reacts faster than less adaptive moving averages, it can quickly identify the start of short-term and intraday trends. Traders can go long when the price breaks above the EWMA and exit when it crosses below it, or a stop loss is hit. For downtrends, traders sell short when the price drops below the EWMA line and close the position when the price breaks above.

Mean reversion strategies

While good for spotting trends early, the responsive nature of the exponentially weighted moving average also makes it useful for mean reversion strategies. Its frequent adjustments create opportunities where the price diverges too far from the average and is expected to revert.

Traders applying a mean reversion approach would buy when the price drops significantly below the EWMA, expecting it to bounce back towards the average. They go short when the price rises substantially above the line, anticipating a pullback toward the mean. Exits occur when the price reaches back to the EWMA level.

 

Understanding The Exponential Weighted Moving Average

 

For the EWMA to work in mean reversion setups, the alpha must be tuned to reflect the normal trading range rather than larger long-term trends. Using traditional technical analysis with the EWMA, such as overbought/oversold levels, can improve signal accuracy.

Combining other indicators

While useful for basic trend and counter-trend strategies, traders often combine the exponentially weighted moving average with other technical indicators for confirmation. Oscillators that measure momentum, like the Relative Strength Index (RSI) or Stochastic Oscillator, can be used to identify oversold/overbought levels and improve entry and exit timing.

Moving average crossovers are also popular, with traders buying or selling when a short-term EWMA crosses a longer one. Adding volume confirmation ensures breakouts have strong conviction before acting. Using the EWMA with other well-known indicators can significantly increase strategy performance.

Consider giving this a look: What Is A Trading Indicator And How It Helps You As A Trader

 

Pros and cons of exponential weighted moving average

The exponentially weighted moving average has some excellent advantages over other types of moving averages, especially when it comes to smoothing price data and reacting quickly to recent price changes. However, the EWMA still has some disadvantages to consider before incorporating it into trading strategies.

Pros - Smooths noisy price data

A significant advantage of the EWMA is its ability to smooth out the noise and volatility of price data that is mostly meaningless to the underlying trend. The EWMA formula filters out fleeting price movements unrelated to sustained momentum by applying greater emphasis on the most recent closing prices.

This makes it easier for traders to analyse the dominant trend direction and forecast where prices may head next.

Short-term fluctuations and spikes can mask the authentic trend and trigger premature buy and sell signals without smoothing effects. This tends to result in losses from acting on false signals and unnecessary bid-ask spread costs from excessive trading. By damping insignificant noise, the exponentially weighted average helps traders patiently ride out minor retracements within trends and avoid chasing every minor price bounce.

Pros - Quickly reacts to latest price shifts

EWMA stands out with its quick reactions to the most recent price shifts. As previous closing prices have exponentially less relevance to the current EWMA value, traders don’t have to wait long for the indicator to reflect ups and downs.

This allows traders to spot emerging trend reversals at earlier stages.

Rather than lagging too far behind like less adaptive traditional moving averages, the EWMA’s formula enables fast-moving averages. Getting quicker signals means identifying breakouts and pullbacks sooner, allowing earlier entries.

Finding new trends as they emerge helps capitalise on more of the price movement rather than fewer period gains. Over time, faster signalling can significantly improve profitability.

Cons - The lagging effect still exists

 

Understanding The Exponential Weighted Moving Average

 

Despite reacting quicker than other moving averages, the exponential weighted moving average still relies on historical price data in its formula. Looking backwards rather than forwards means there will always be some degree of lag against current prices. No past data can perfectly predict future prices.

So, when price volatility expands, the lag effect may also increase. This can result in late signals at major turning points, potentially entering after a substantial share of the new trend’s price movement has developed.

Getting delayed signals heightens the odds of buying near short-term tops and selling closer to lows. Patience is critical until confirmation signals emerge when using the lagging EWMA.

Cons - Requires smoothing factor tuning

Traders must take care when selecting an appropriate alpha smoothing factor. Low alpha settings slow the EWMA response time, while levels set too high increase noise sensitivity and volatility in the calculated moving average. Failing to fine-tune alpha for your strategy’s timeframe may hinder success.

Blindly applying general alpha setting rules rarely optimises EWMA effectiveness. Each trader must evaluate various smoothing factors through trial and error and backtesting. Checking what alpha levels boosted strategy profitability historically guides the best settings to apply going forward. Without custom tuning, the exponentially weighted moving average may not reach its full potential.

 

As a final thought,

The exponential weighted moving average (EWMA) is a unique type of moving average that applies greater significance to the most recent price data. This weighting causes it to react faster to price changes than standard moving averages. The EWMA formula enables smoothing noisy price data to reveal trends while staying responsive to emerging shifts.

While the concepts may seem complex at first glance, the exponentially weighted moving average can be invaluable for traders of all skill levels. Its ability for faster signalling and noise reduction can improve strategy timing and performance. Just be sure to take time to find the proper smoothing factor alpha for your preferred trade timeframes.

 

Use the exponential weighted moving average indicator when trading on markets.com

Improve your trading skills by trying out the EWMA indicator. It helps make your strategies more precise and timely. Add it to your past chart analysis and testing to make it work better. Adjust the alpha smoothing factor to get the most out of the Exponential Weighted Moving Average.

 

Give it a shot with our free demo account made just for you. Practice making trades using EWMA signals and build confidence in your abilities. With virtual money, you can trade without worries and get better at what you do!

Ready to trade with markets.com? Creating an account is easy!

 

“When considering “CFDs” for trading and price predictions, remember that trading CFDs involves a significant risk and could result in capital loss. Past performance is not indicative of any future results. This information is provided for informative purposes only and should not be considered investment advice.”


Risk Warning and Disclaimer: This article represents only the author’s views and is for reference only. It does not constitute investment advice or financial guidance, nor does it represent the stance of the Markets.com platform. Trading Contracts for Difference (CFDs) involves high leverage and significant risks. Before making any trading decisions, we recommend consulting a professional financial advisor to assess your financial situation and risk tolerance. Any trading decisions based on this article are at your own risk.

Arianne Bonacua
Written by
Arianne Bonacua
SHARE

Markets

  • Palladium - Cash

    chartpng

    --

    -0.36%
  • EUR/USD

    chartpng

    --

    0.13%
  • Cotton

    chartpng

    --

    0.86%
  • AUD/USD

    chartpng

    --

    0.51%
  • Santander

    chartpng

    --

    2.78%
  • Apple.svg

    Apple

    chartpng

    --

    0.31%
  • easyJet

    chartpng

    --

    6.35%
  • VIXX

    chartpng

    --

    -1.70%
  • Silver

    chartpng

    --

    0.50%
Tags DirectoryView all
Table of Contents
  • 1. Calculating the exponential weighted moving average
  • 2. Using EWMA in trading strategies
  • 3. Trend following strategies
  • 4. Mean reversion strategies
  • 5. Combining other indicators
  • 6. Pros and cons of exponential weighted moving average
  • 7. Pros - Smooths noisy price data
  • 8. Pros - Quickly reacts to latest price shifts
  • 9. Cons - The lagging effect still exists
  • 10. Cons - Requires smoothing factor tuning
  • 11. As a final thought,
  • 12. Use the exponential weighted moving average indicator when trading on markets.com

Related Articles

Best Stocks to Buy in 2025: PYPL, SHOP, DIS, GOOGL, AMZN

Best Stocks to Buy in 2025: investing in the stock market requires careful analysis of company fundamentals, industry trends, and macroeconomic conditions.

Ghko B|about 18 hours ago

SoFi stock price analysis: What is the 5 year forecast for SoFi?

SoFi stock price analysis: SoFi Technologies, Inc. has emerged as a prominent player in the fintech industry, offering a wide range of financial services.

Ghko B|about 18 hours ago

HIMS stock news: Hims & Hers Stock Plunges 30% after partnership fallout

HIMS stock news: Hims & Hers Health, Inc., a telehealth company focused on providing healthcare services and products, recently faced a significant downturn in its stock price.

Ghko B|about 18 hours ago
Markets.com Logo
google playapp storeweb tradertradingView

Contact Us

support@markets.com+12845680155

Markets

  • Forex
  • Shares
  • Commodities
  • Indices
  • Crypto
  • ETFs
  • Bonds

Trading

  • Trading Tools
  • Platform
  • Web Platform
  • App
  • TradingView
  • MT4
  • MT5
  • CFD Trading
  • CFD Asset List
  • Trading Info
  • Trading Conditions
  • Trading Hours
  • Trading Calculators
  • Economic Calendar

Learn

  • News
  • Trading Basics
  • Glossary
  • Webinars
  • Traders' Clinic
  • Education Centre

About

  • Why markets.com
  • Global Offering
  • Our Group
  • Careers
  • FAQs
  • Legal Pack
  • Safety Online
  • Complaints
  • Contact Support
  • Help Centre
  • Sitemap
  • Cookie Disclosure
  • Regulation
  • Awards and Media

Promo

  • Gold Festival
  • Crypto Weekend Trading
  • marketsClub
  • Welcome Bonus
  • Loyal Bonus
  • Referral Bonus

Partnership

  • Affiliation
  • IB

Follow us on

  • Facebook
  • Instagram
  • Twitter
  • Youtube
  • Linkedin
  • Threads
  • Tiktok

Listed on

  • 2023 Best Trading Platform Middle East - International Business Magazine
  • 2023 Best Trading Conditions Broker - Forexing.com
  • 2023 Most Trusted Forex Broker - Forexing.com
  • 2023 Most Transparent Broker - AllForexBonus.com
  • 2024 Best Broker for Beginners, United Kingdom - Global Brands Magazine
  • 2024 Best MT4 & MT5 Trading Platform Europe - Brands Review Magazine
  • 2024 Top Research and Education Resources Asia - Global Business and Finance Magazine
  • 2024 Leading CFD Broker Africa - Brands Review Magazine
  • 2024 Best Broker For Beginners LATAM - Global Business and Finance Magazine
  • 2024 Best Mobile Trading App MENA - Brands Review Magazine
  • 2024 Best Outstanding Value Brokerage MENA - Global Business and Finance Magazine
  • 2024 Best Broker for Customer Service MENA - Global Business and Finance Magazine
LegalLegal PackCookie DisclosureSafety Online

Payment
Methods

mastercardvisanetellerskrillwire transferzotapay
The markets.com/za/ site is operated by Markets South Africa (Pty) Ltd which is a regulated by the FSCA under license no. 46860 and licensed to operate as an Over The Counter Derivatives Provider (ODP) in terms of the Financial Markets Act no.19 of 2012. Markets South Africa (Pty) Ltd is located at BOUNDARY PLACE 18 RIVONIA ROAD, ILLOVO SANDTON, JOHANNESBURG, GAUTENG, 2196, South Africa. 

High Risk Investment Warning: Trading Foreign Exchange (Forex) and Contracts For Difference (CFDs) is highly speculative, carries a high level of risk and is not appropriate for every investor. You may sustain a loss of some or all of your invested capital, therefore, you should not speculate with capital that you cannot afford to lose. You should be aware of all the risks associated with trading on margin. Please read the full  Risk Disclosure Statement which gives you a more detailed explanation of the risks involved.

For privacy and data protection related complaints please contact us at privacy@markets.com. Please read our PRIVACY POLICY STATEMENT for more information on handling of personal data.

Markets.com operates through the following subsidiaries:

Safecap Investments Limited, which is regulated by the Cyprus Securities and Exchange Commission (“CySEC”) under license no. 092/08. Safecap is incorporated in the Republic of Cyprus under company number ΗΕ186196.

Finalto International Limited is registered  in the Saint Vincent and The Grenadines (“SVG”) under the revised Laws of Saint Vincent and The Grenadines 2009, with registration number  27030 BC 2023.

set cookie

set cookie

We use cookies to do things like offer live chat support and show you content we think you’ll be interested in. If you’re happy with the use of cookies by markets.com, click accept.