Moving Averages in Trading

A Popular Technique

Moving averages are a popular technical analysis tool used by traders. Moving averages are used to identify potential trading opportunities and market trends by smoothing out price fluctuations over a determined period of time. Moving averages are of two general types: simple moving averages (SMA) and exponential moving averages (EMA), and are calculated by taking the average price of an asset over a set period of time, known as periods. As each new period is added to the analysis, the oldest data point is dropped, and the moving average “moves” over time, hence the term “moving average.” SMAs and EMAs both offer insight into trends and potential opportunities, and are both appropriate depending on various factors, as well as the trader’s trading strategy.


SMAs and EMAs are the two most well known technical indicators in financial analysis. These tools can be used to analyze trends in financial markets, including in forex trading.


A simple moving average is a basic indicator that is used to smooth out price data for a given period. SMAs are calculated by adding up the closing prices of a specific number of time periods, then dividing that sum by the total number of periods. As an example, a 30 day SMA would add up all of the closing prices for the past 30 days, and then divide that sum by 30 to calculate the average.

SMAs are considered to be lagging, as they are based on past prices. SMAs can be used to identify the overall direction of trends, along with support and resistance levels — whereas a crossover between the price and SMA can indicate a potential trend reversal.


EMAs are a more advanced type of moving average that give greater weight to recent prices. EMAs are calculated by taking weighted averages of past prices, giving the most recent prices the greatest weight. Weight decreases exponentially as you move back in time. EMAs are calculated using a formula that uses a multiplier, which is based on the number of periods.

EMAs are also used to identify trends, as well as support and resistance levels. However, EMAs are more responsive to recent price changes. This makes them more useful for short term trading, as they are able to quickly identify potential changes in price direction.

SMAs vs. EMAs

The primary difference between SMAs and EMAs is the way that they weigh past prices. As mentioned, SMAs give equal weight to all prices in a given time period, while EMAs give greater weight to more recent prices. This makes EMAs more volatile than SMAs, but more responsive to changes in price direction.

In general, EMAs are considered to be more useful for short term trading, while SMAs are seen as better for identifying long term trends. Nevertheless, both types of moving averages can be used in technical analysis across multiple markets.


All types of moving averages are used in forex trading to identify trends and support and resistance levels, as well as to generate buy and sell signals.

One common trading strategy is to look for crossovers between the price and moving averages. A crossover is a point on the trading chart where the price of a security and a technical indicator line intersect, or, where two indicators intersect. Crossovers are often used to estimate the performance of a financial instrument as well as to predict trend changes. When a price crosses above the moving average, it can indicate a potential uptrend. Conversely, when it crosses below the moving average, it can indicate a potential downtrend. Traders may use this information to buy or sell.

Which Moving Average Should I Use?

Here are several scenarios where using SMAs may be more suitable:

Identifying long term trends: Because SMAs give equal weight to each data point, which can provide a smoother representation of the price trend over a longer period of time, SMAs are better tailored to identifying long term trends.

Less susceptible to market fluctuations: SMAs tend to be less susceptible to sudden price fluctuations, due to SMAs giving equal weight to each data point. As such, sudden spikes or dips in price will not have as strong of an impact on the overall moving average.

Basic trading strategies:. Because SMAs are easier to calculate and understand, this makes them a good choice for beginner traders. In general, SMAs are better suited for basic trading strategies.

Here are a few scenarios where using EMA may be more suitable:

Short term trading: Because SMAs give unequal weight to each data point, with more weight given to recent price points, they respond more quickly to changes in price. This makes EMAs generally more suitable for identifying short term trends.

Volatile markets: EMAs are overall a more appropriate analytical tool for volatile markets, where sudden price changes are frequent.

Momentum trading: For the same reason that EMAs give more weight to recent price points, they are typically better suited for capturing the momentum of a trend.

Both SMAs and EMAs are valuable technical indicators that can be used to analyze trends and generate buy and sell signals on the foreign exchange. While there are meaningful and measurable differences between these two types of moving averages, they are both useful under different market conditions and for varying trading strategies. Traders should become familiar with both of these analyses, and utilize the strategy that works best for them and their ultimate goals. Traders should also remember to always utilize risk management techniques whenever trading on the foreign exchange, or any other financial market. Technical analysis is an important part of learning how to trade effectively, but it is not the only part — risk management is equally, if not more important.

Successful Algorithmic Trading Book

Algorithmic Trading Accelerator


A trader might use a long term SMA to identify the overall trend, and then use a short term EMA to generate buy and sell signals based on recent price movements. This is why it is crucial to become accustomed to both moving average analyses, as well as other technical indicators and fundamental analysis tools, as they are more effective when combined or used in unison.

Remembering the plethora of tools, techniques and strategies can be challenging, even for the brightest among us. Algo bots can be programmed with vast amounts of knowledge, techniques, tools, strategies, risk management adjustments, and more, and can recall that information at rapid speeds.

Algorithmic trading bots, or algo bots, can be programmed to analyze moving averages and execute trades based on these identifiers. Algo bots can also be set up to monitor multiple moving averages at once and execute trades based on certain conditions. For example, a bot can be programmed to buy an asset when the price crosses above the 30-day moving average and sell the asset when the price falls below the 90-day moving average.

One key advantage of using algorithmic trading bots to analyze moving averages is that they can do so much faster than humans. Algo bots can monitor multiple moving averages across multiple assets simultaneously, which would be more time-consuming for human traders. Algo bots can also execute trades over a 24 hour period, whereas human traders cannot. Although not all markets are open 24 hours per day, forex is, along with cryptocurrency exchanges.

Whether or not algorithmic trading bots are utilized, it is imperative for traders to know at least the most basic trading strategies and technical analysis tools, as this will potentially help to reduce or mitigate financial losses. While no amount of knowledge, and no algo bot, can completely eliminate risk, there are ways to potentially reduce risk, and knowing the most important technical analysis tools is a good place to start.

Share this post on:

About the Author

Jeff Sekinger

Jeff Sekinger Founder & CEO, 0 Percent Who is Jeff Sekinger? Visionary Trailblazer Sekinger has been in the financial industry for over a decade. Starting

Related Articles

Stay in the Loop

Sign up to receive news & updates!