Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. You could sustain a loss of some or all of your initial investment and should not invest money that you cannot afford to lose. CFDs are complex instruments. You can lose your money rapidly due to leverage. Please ensure you understand how this product works and whether you can afford to take the high risk of losing money.

What is exponential moving average (EMA) and how to use it

Exponential moving average is perhaps one of the most common indicators used when it comes to trading. Understand what goes on behind the computation of this moving average to better complement your trading needs.

What is exponential moving average (EMA)?

The exponential moving average (EMA) is a type of moving average that considers the weighted average of a series of recent data to reflect the ongoing trend in the market. The weight of the EMA is exponentially tilted towards more recent occurrences, giving the recent data greater influence over the reading.

This price-based indicator typically looks at the average closing price of a security over a specified number of periods, such as a 50-day, 100-day or longer 200-day EMAs, smoothing out short-term price fluctuations to provide a clearer image of the market trend.

As with other moving averages, this is a technical analysis tool that uses historical data to predict future price movements of a freely-traded market. Prices are viewed as a reflection of the real-time supply and demand interactions and thus investor sentiment.

The underlying assumption here is that price patterns tend to repeat over time and market technicians believe that humans often are irrational and emotional and thus tend to behave similarly in similar circumstances. EMA may be used by itself, but oftentimes in conjunction with other technical analysis tools or fundamental analysis for trading as well.

How to calculate exponential moving average

The computation of a security’s EMA is broadly straightforward. The exponential m-day moving average EMA with smoothing parameter k is defined as the below.

The smoothing parameter k takes on a value of between 0 and 1, typically chosen as 2/(m+1). An example is shown below for the computation of EMA where m = 5 and therefore k = 1/3.

Price EMA (m=5)
Day one 102.4 102.4
Day two 103.6 102.8
Day three 103.5 103.0
Day four 101.2 102.4
Day five 100.0 101.6

Exponential moving average vs simple moving averages

As explained above, EMA as with simple moving averages (SMAs) are popular technical analysis tools. They are also very similar in measurement of trends. SMAs can be quite simply computed using the formula below for an m-day SMA.

The difference, however, is that EMAs accord greater weightage to more recent information and will therefore be more sensitive towards the latest price changes than SMA. While this may matter very little for short-term trading, the difference becomes more apparent in the study of longer-term price trends. Recent data may be regarded as more telling of the latest market sentiment. This had also been why EMA presents itself as a popular choice of moving average between the two. In practice, both EMA and SMAs are commonly used by technical analysts and traders.

How to use exponential moving average in your trading

Both exponential and simple moving averages, while different in their computation of value, may be used in similar manners. A straightforward way to utilise moving averages in one’s trade is to use two moving averages of different time frames in conjunction.

A short-term moving average (stMA) is used to reflect the current impetus of the market while a longer-term moving average (ltMA) shows the broader trend of the market. When a stMA crosses over from underneath a ltMA, this serves as a bullish signal in the market and is commonly known as a golden cross. Conversely, the crossing over of an stMA from above a ltMA is considered bearish and is recognised as a death cross.

Using Apple, a popular US Fang index as an example, one can see that the crossover of the short-term 20-day MA above the longer-term 60-day MA as a bullish sign. Depending on one’s time frame of trade, the MAs of choice can also be adjusted correspondingly.

Exponential moving average limitations

Once again, the key trait of the EMA may also be its limitation. Given the greater influence that recent data has on the EMA, recency bias is present here. With the stock market, this can be dangerous when prices are at extremes. The EMA may fuel further buying interest in the market during a time when prices are already in extreme overbought condition, overdue for a pullback. It is important that one exercise their discretion when using any tools in their trading. Back testing would be one way to improve the validity of one’s trading strategy using tools such as the EMA. Using the EMA in conjunction with other analytical tools may also a way to improve one’s conviction in their trade.

Publication date : 2020-01-29T14:12:00+0000

This information has been prepared by IG, a trading name of IG US LLC. This material does not contain a record of our trading prices, or an offer of, or solicitation for, a transaction in any financial instrument. You should not treat any opinion expressed in this material as a specific inducement to make any investment or follow any strategy, but only as an expression of opinion. This material does not consider your investment objectives, financial situation or needs and is not intended as recommendations appropriate for you. No representation or warranty is given as to the accuracy or completeness of the above information. IG accepts no responsibility for any use that may be made of these comments and for any consequences that result. Any research provided should be considered as promotional and was prepared in accordance with CFTC 1.71 and designed to promote the independence of investment research. See our Summary Conflicts Policy, available on our website.

Develop your trading skills

Discover how to trade – or develop your knowledge – with free online courses, webinars and seminars.

You might be interested in…

Find out what charges your trades could incur with our transparent fee structure.

Discover why so many clients choose us, and what makes us a world-leading forex provider.

Stay on top of upcoming market-moving events with our customisable economic calendar.