How to Use the EMA Indicator

Amrita Kundu
13 Min read

The moving average indicator is one of the most popular and versatile technical indicators available to online traders. But it comes in several different forms, one of which is the Exponential Moving Average, often referred to simply as the EMA Indicator.

In this article we will explain what the exponential moving average indicator is, share the exponential moving average formula, demonstrate how to use the EMA indicator and much more!

The information in this article is provided for educational purposes only and does not constitute financial advice. Consult a financial advisor before making investment decisions.

What Is the Exponential Moving Average?

The moving average indicator is an essential tool for identifying trends. We use moving averages to smooth out variations in data, in order to better discern the underlying trend.

The indicator does this by looking back at a number of historical data points and then calculating an average of the values. But there is more than one way to calculate the average and, consequently, there are several different types of moving average indicators.

The most straightforward is the Simple Moving Average (SMA), which considers all price values equally and takes a mean average. However, other types of moving averages assign a different weighting to each price value, favouring recent prices more heavily than older prices.

This is the way in which the exponential moving average indicator is calculated. The most recent prices are assigned greater weighting, and this decreases exponentially as we move further back in time.

It is difficult to provide a fully satisfactory EMA indicator meaning without getting into the specifics of how to calculate the exponential moving average formula.

A basic exponential moving average definition is: a smoothing technique arrived at by adding a portion of the current price, to a portion of the value of the previous moving average. To properly understand what is going on, we need to take a look at the maths behind the exponential moving average calculation.

Using the Exponential Moving Average Formula

We calculate an EMA value at time ‘t’ using the exponential moving average formula.

Exponential Moving Average
EMAt = α x current price + (1- α) x EMAt-1

Where 'α' is a smoothing constant with a value between 0 and 1 and EMAt-1 is the EMA value for the previous period.

The smoothing constant is defined by the number of periods (n) in the EMA and is calculated as such:

α = 2 / (n + 1)

You can see from the initial formula that calculating the EMA for a given point in time requires us to know the EMAs for previous periods. For a daily EMA, we derive the current value from the prior day's EMA, which in turn we derive from the day before that, and so on.

In other words, there are some other steps involved. The first of these is to obtain a starting point for our exponential moving average calculation, secondly, we need to determine our smoothing constant. The best way to illustrate the process of how to calculate the exponential moving average is to do so with an example.

The Exponential Moving Average Calculation

As mentioned earlier, in the calculation of the exponential moving average, we need a ‘Day 1’ value to start with. For this first value, we use a simple moving average, by finding the mean average of the previous ‘n’ values.

Therefore, our starting point in the calculation of the exponential moving average is actually a simple moving average.

Now we know where to start, let’s look at how to calculate an 8-day EMA from some sample values. Our smoothing constant will be:

  • 2 / (n + 1); or
  • 2 / 9

The table below shows the values involved in calculating the 8-day exponential moving average. The table also includes a column showing the SMA values for the sake of comparison.

Day Sample Price 8-Day SMA α 8-Day EMA
1 168      
2 170      
3 171      
4 175      
5 170      
6 172      
7 176      
8 179      
9 178 172.625 0.222222 172.625
10 186 173.875 0.222222 175.5972
11 192 175.875 0.222222 179.2423
12 183 178.5 0.222222 180.0773
13 177 179.5 0.222222 179.3935
14 172 180.375 0.222222 177.7505
15 167 180.375 0.222222 175.3615
16 177 179.25 0.222222 175.7256
17 180 179 0.222222 176.6755

The calculation discounts the weight of older valuations by a factor of (1-α) per period. In doing this, traders can use EMAs to smooth the previous price data in the hopes of identifying and exploiting an ongoing trend.

As you can imagine, performing the exponential moving average formula with a large data set would be incredibly time consuming. Fortunately, most trading platforms will be able to do these calculations for you almost instantaneously.

In the next section, we will show you how to use the exponential moving average indicator in both MetaTrader 4 (MT4) and MetaTrader 5 (MT5), both of which come with the EMA indicator by default.

How to Use the EMA Indicator in MT4 and MT5

Fortunately, applying the EMA indicator in MT4 and MT5 is very straightforward. Here, we will show you how to use the EMA indicator for MT5 but, rest assured, the process is exactly the same in MT4.

In order to use the exponential moving average, you will have to locate the moving average indicator in the ‘Trend’ indicators folder within the Navigator window, as shown below.

Depicted: Admiral Markets MetaTrader 5 – EMA Indicator Settings

The MA method field defines the type of moving average that you'll add to the chart, to add an EMA, you will need to select ‘Exponential’. The two other EMA indicator settings to fill out are ‘Period’ and ‘Shift’.

The period refers to the ‘look-back’ period over which the EMA indicator will be calculated. The larger the period, the smoother the line and, conversely, the smaller the period, the more responsible the exponential moving average indicator will be to changes in price.

Traders often use EMA 5, EMA 10, EMA 20 as common short-term settings, 10 and 25 for faster curves, or 100 and 200 periods for longer-term trends. For those who want an EMA indicator somewhere in the middle, a period of 50 might be more appropriate.

What about ‘Shift’? The shift setting works by offsetting the EMA indicator along the time axis by the number which you specify. The default value for this setting is 0, which is a good place for beginners to start.

The image below shows a 25-period Forex EMA indicator added to a daily GBP/USD chart.

Depicted: Admirals MetaTrader 5 – GBPUSD Daily Chart. Date Range: 25 February 2022 – 19 October 2022. Date Captured: 19 October 2022. Past performance is not a reliable indicator of future results.

Can you see how the exponential moving average indicator line is much smoother than the movements of the underlying price? It still traces the general movement of the market, but it effectively filters out price noise, showing us a clearer indication of the overriding trend.

The line of the EMA indicator guides us to the trend. Notice how we get a sustained downtrend after the price breaks below the EMA indicator line? This can often be the case and can sometimes interpreted as a trading signal. one of the key aspects of how to trade with the exponential moving average

Building An Exponential Moving Average Strategy

An even more effective way of producing trading signals is with a double exponential moving average strategy, using one short-term and one-long term EMA. This exponential moving average strategy creates a trading signal when the shorter EMA indicator crosses the longer one.

For example, a Forex trader might choose to use a 25-day EMA as the shorter EMA and a 100-day EMA as the longer one. With this exponential moving average crossover strategy, the trader would buy when the 25-day EMA crosses above the 100-day EMA, and sell when the 25-day EMA crosses below the 100-day EMA.

Depicted: Admiral Markets MetaTrader 5 – AUDUSD Daily Chart. Date Range: 25 February 2022 – 19 October 2022. Date Captured: 19 October 2022. Past performance is not a reliable indicator of future results.

In the chart above, the green line represents the 25-day exponential moving average, whilst the red line is the longer 100-day EMA.

We can see that after briefly crossing above the 100-day EMA, the 25-day EMA drops back below. This second exponential moving average crossover was followed by a prolonged downtrend, which persevered until the time the image of the chart was captured. With this exponential moving average strategy, our exit signal is the same as our entry signal – when the shorter EMA crosses back over the longer EMA.

Final Thoughts On Exponential Moving Average

We have seen how we can use the EMA indicator to smooth price data and help find the trend in both MT4 and MT5.

Not only does this indicator help confirm the trend, but it can also be used to provide trading signals, as we saw with the exponential moving average crossover strategy. It is often used in combination with other indicators or tools to confirm the strength of a trend or signal.

As with all moving averages, you need to be aware that the EMA indicator is a lagging indicator. Because it utilises past data, the price will always be on the move before the EMA reacts. Generally speaking, an exponential moving average will respond quicker to newer data compared with an SMA, as it assigns more weight to more recent prices. The exact curve characteristics are governed by the period you choose.

A great way to determine what the best EMA indicator settings for your own trading style is by testing the different options in a free demo trading account.

Trade on a Risk-Free Demo Account

A demo trading account allows you to practise and perfect your exponential moving average strategy in a risk-free environment! Trade using virtual currency in realistic market conditions before heading over to the live markets! Click the banner below in order to open a free demo account today:

Learn to trade with virtual funds

Read More About Trading Indicators

Frequently Asked Questions On The EMA Indicator 

What is EMA in forex trading?

EMA stands for Exponential Moving Average. The Exponential Moving Average (EMA) is a crucial technical indicator in trading, employed for price trend analysis and prediction. In contrast to the Simple Moving Average (SMA), the EMA places a substantial emphasis on recent price data, enhancing its responsiveness to market fluctuations.  

How can traders benefit from using the EMA indicator?

The weighting mechanism enables the EMA to adapt quickly to evolving market conditions, making it a preferred choice for traders seeking timely insights into price movements and potential trend changes. EMA is a key component of various trading systems and is commonly employed in conjunction with other technical indicators to enhance analysis and decision-making

 

About Admiral Markets

Admiral Markets is a multi-award winning, globally regulated Forex and CFD broker, offering trading on over 8,000 financial instruments via the world's most popular trading platforms: MetaTrader 4 and MetaTrader 5. Start trading today!

INFORMATION ABOUT ANALYTICAL MATERIALS:

The given data provides additional information regarding all analysis, estimates, prognosis, forecasts, market reviews, weekly outlooks or other similar assessments or information (hereinafter “Analysis”) published on the websites of Admiral Markets investment firms operating under the Admiral Markets trademark (hereinafter “Admiral Markets”) Before making any investment decisions please pay close attention to the following:

  • This is a marketing communication. The content is published for informative purposes only and is in no way to be construed as investment advice or recommendation. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and that it is not subject to any prohibition on dealing ahead of the dissemination of investment research.
  • Any investment decision is made by each client alone whereas Admiral Markets shall not be responsible for any loss or damage arising from any such decision, whether or not based on the content.
  • With view to protecting the interests of our clients and the objectivity of the Analysis, Admiral Markets has established relevant internal procedures for prevention and management of conflicts of interest.
  • The Analysis is prepared by an analyst (hereinafter “Author”). The Author Amrita Kundu is a contractor for Admiral Markets. This content is a marketing communication and does not constitute independent financial research.
  • Whilst every reasonable effort is taken to ensure that all sources of the content are reliable and that all information is presented, as much as possible, in an understandable, timely, precise and complete manner, Admiral Markets does not guarantee the accuracy or completeness of any information contained within the Analysis.
  • Any kind of past or modelled performance of financial instruments indicated within the content should not be construed as an express or implied promise, guarantee or implication by Admiral Markets for any future performance. The value of the financial instrument may both increase and decrease and the preservation of the asset value is not guaranteed.
  • Leveraged products (including contracts for difference) are speculative in nature and may result in losses or profit. Before you start trading, please ensure that you fully understand the risks involved.
See more
Bull and Bear Power Indicators: A Guide to the Elder-Ray Trading System
Understanding the balance of buying and selling pressure is a key part of trading. The Bull and Bear Power (BBP) indicator, also known as the Elder-Ray Index, are designed to try and reveal that balance.  This guide explains what these indicators measure, how they are calculated, and how you can use...
Mastering the Forex Currency Strength Meter
One aspect that sets the forex market apart from others is the use of currency pairs. Each trade takes place by buying one currency and selling another, which means that the value of one currency is always seen through the lens of the other. Consider the EURUSD pair, for instance. If its price incre...
Using Forex Market Sentiment Indicators
The Forex market has millions of traders, and they all have their own personal strategies and thought processes. Market sentiment is the dominating emotional condition of market participants towards market directions. Forex market sentiment is frequently used as a way of measuring crowd behaviour....
View All
help-icon Live chat