Indicators

Moving Averages: SMA, EMA, and Adaptive Variants in Trading

In short

A moving average smooths the price over a fixed number of candles and thus shows the direction of the trend. If the price approaches the line and turns away, this is called a retreat; if it closes on the other side, a break. On forex and crypto pairs, FinScans reports around eighty triggers for this, from “SMA 200 Retreat Up” to “ALMA Break Down”.

What Is a Moving Average?

A moving average is the mean of the closing prices over a fixed number of candles. With each new candle, the oldest one drops out and the newest is added; in this way the average moves along with the price. As a line on the chart, it smooths out individual fluctuations and shows the direction in which the market is moving on average.

Moving averages are among the oldest and most widely used tools of technical analysis. John Murphy describes them in Technical Analysis of the Financial Markets as particularly versatile, because trend filters, signals, and other indicators can be derived from them. Perry Kaufman, who developed an adaptive average of his own with the KAMA, sets out numerous variants side by side in Trading Systems and Methods.

Among the indicators, the moving average is a building block of many others: the MACD is the difference between two EMAs, the middle of the Bollinger Bands is an SMA 20, and with the golden cross two averages cross each other.

How Do You Calculate a Moving Average?

The calculation differs depending on the type of average, but the principle is always the same: a mean is formed from the most recent closing prices and recalculated with every candle.

  • SMA (simple moving average): the last n closing prices are added up and divided by n; each candle counts equally.
  • EMA (exponential moving average): the new line moves closer to the price by the share 2/(n+1) of the distance between the close and the old line. Newer candles therefore count more, and the EMA reacts faster than the SMA.
  • Period: n is the number of candles. On the 1h chart, an EMA 50 therefore spans 50 hours; on the 1d chart, 50 days.
  • Lag: the longer the period, the smoother the line and the later it reacts to a turn.
  • Position relative to the price: if the price lies above a rising average, there is an uptrend; if it lies below a falling one, a downtrend. If it swings around a flat line, the market is moving sideways.

What Does a Moving Average Show About the Market?

First, it shows the direction: the slope of the line reveals whether the closing prices are rising or falling on average. Many traders therefore use a long average as a filter and trade only in the direction it points.

Second, a widely watched average often acts like a moving support or resistance. If the price in an uptrend pulls back to an EMA 50 or an SMA 200, many market participants buy there because they are watching the same line. Part of this effect therefore rests simply on many people looking at the same place.

Third, the average never shows the turning point itself. It reacts only once the closing prices have already been moving in the new direction for a while. This lag is the price of the smoothing: an average that filters out fluctuations also filters out the start of a new move.

What Types Exist?

Besides the SMA and EMA, there are numerous variants. They differ in how they weight the candles and how much they reduce the lag. The table at the end of the section summarizes them.

SMA and EMA

The SMA and EMA are the basic forms. The most widely watched periods are 50 and 200, for example the SMA 200 on the daily chart as the boundary between a long-term uptrend and downtrend. The EMA follows the price faster and is therefore often used for shorter moves.

WMA and TRIMA

The weighted moving average (WMA) gives each candle a weight according to its position: the newest counts most, the oldest least, and the weight decreases evenly in between. The triangular moving average (TRIMA) is an average of an average; it weights the middle of the period most heavily, is especially smooth, and reacts especially late.

DEMA, TEMA, and ZLMA

These variants are meant to reduce the lag. The DEMA doubles an EMA and subtracts its own smoothing again; the TEMA goes one step further and combines three stages. The ZLMA (zero lag) estimates the lag from the price action and removes it. All three lie closer to the price, but fluctuate more as a result.

HMA, ALMA, and T3

The Hull moving average (HMA) combines weighted averages of different lengths and smooths the result over the square root of the period; it is fast and still fairly calm. The ALMA weights the candles according to a bell curve whose center is shifted toward the newer candles. The T3 smooths several times in a row and is considered especially calm.

Adaptive Averages: KAMA, VIDYA, MAMA, and McGinley Dynamic

Adaptive averages change their speed with the market. The KAMA runs fast when the price moves purposefully and slowly when it swings back and forth. The VIDYA adjusts its speed to the range of fluctuation, the McGinley Dynamic to the speed of the price. John Ehlers' MAMA adapts to the market's cycle and has a companion line, the FAMA; when the two cross, this counts as a signal.

TypeWeightingLagTypical use
SMAAll candles equalHighLong-term trend filters such as the SMA 200
EMANewer candles more, exponentiallyMediumTrend following and pullbacks within the trend
WMA, TRIMALinearly decreasing or middle emphasizedMedium or highSmooth trend line
DEMA, TEMA, ZLMALag removed by calculationLowShort-term signals, more false signals
HMA, ALMA, T3Combined or shaped weightsLow to mediumFast and yet calm
KAMA, VIDYA, MAMA, McGinley DynamicSpeed adapts to the marketVariableFewer swings in sideways phases

When Does a Retreat or Break Confirm, and When Does It Not?

There are two events at the average. In a retreat, the price approaches the line and turns away without closing on the other side. In a break, it closes beyond the line. Both are confirmed only when the following candles hold the new position: distance from the line after a retreat, closes on the new side after a break.

Breaks in particular often fail. In sideways phases, the price swings around the line and crosses it again and again; in a trend, a narrow close beyond the line is often just a somewhat deeper pullback. The following chart shows exactly that.

False signal with “EMA 50 Break Down”: in an uptrend, a candle closes just below the EMA 50. The very next candle closes back above it, the one after that above the high of the signal candle, and the uptrend continues.EMA 50 Break Down14 Mar26 Mar7 Apr19 Apr1 May13 May25 May6 Jun110.31100.00102.50105.00107.50EMA 50
False signal with “EMA 50 Break Down”: in an uptrend, a candle closes just below the EMA 50. The very next candle closes back above it, the one after that above the high of the signal candle, and the uptrend continues.

In the false-signal chart, the price rises clearly after a sideways phase and stays above the EMA 50 for a long time. Then it pulls back to the line. The signal candle opens at 104.16, falls to 103.35, and closes at 103.47, below the EMA 50, which lies at 103.85 there. The next candle closes back above the line at 104.28, the one after that at 105.16, above the high of the signal candle at 104.48. The break was therefore only a deeper pullback; the last candle in the chart closes at 110.31, with the EMA 50 at 106.43.

Example of Entry, Stop, and Target

A planned trade with a retreat waits until a candle closes away from the line and enters at the close. The stop lies below the lowest low of the pullback: if the price falls below it, the line has not held. The target is the swing high where the pullback began.

In an uptrend, the price pulls back to the rising EMA 50, touches it with a wick, and in the next candle closes clearly above it (“EMA 50 Retreat Up”). After that, it rises to the swing high.Swing highEMA 50 Retreat Up17 Mar1 Apr16 Apr1 May16 May31 May15 Jun109.59107.7198.00100.00102.00104.00106.00EMA 50
In an uptrend, the price pulls back to the rising EMA 50, touches it with a wick, and in the next candle closes clearly above it (“EMA 50 Retreat Up”). After that, it rises to the swing high.

In the chart, the price rises after a sideways phase to a swing high at 109.59; the EMA 50 rises with it. After that, it pulls back to the line over ten candles. The lowest low of the pullback is 105.01, just below the EMA 50 at 105.23; the close, however, stays above it. The signal candle opens at 105.51 and closes at 106.32, clearly above the line; that is where the buy is made. The stop is just below the lowest low, at 104.91; the risk is 1.41 points. The target is the swing high at 109.59; the price reaches it after 12 candles, which is 3.27 points. This gives a risk/reward ratio of roughly 1:2.3. The slope of the line matters: the EMA 50 rose from 104.44 to 105.27 in the ten candles before the signal, so the retreat ran in the direction of the trend.

How Do You Use Moving Averages Across Multiple Timeframes?

Because the period counts in candles, the same average covers a different span of time on each timeframe. An EMA 50 on the 4h chart covers about 200 hours and thus roughly the same span as an EMA 200 on the 1h chart.

Many traders use this for a two-stage filter: on the higher timeframe, the slope of a long average sets the direction; on the lower one, they look for retreats at a shorter average in exactly this direction. If, for example, the SMA 200 on the 4h chart is rising, only upward retreats count on the 1h chart. On the signal page and in the cockpit, you can see which way the trend is currently pointing on each of the eight timeframes.

How Do News and Scheduled Events Affect Moving Averages?

An average always reacts to news only afterward. If the price jumps after a release, it often crosses short averages within a single candle, while long lines barely move. Around important scheduled events, many breaks therefore occur that are taken back after a few candles.

Before entering at the line, check the economic calendar to see whether an interest rate decision or a labor market report is coming up. The news situation in the cockpit also shows whether the reports on the pair tend to point in the direction of the trend or against it.

How Do You Use Moving Averages in the Four Trading Styles?

Which averages make sense depends on how long a position stays open. The table at the end of the section shows roughly what span of time an EMA 50 and an SMA 200 cover on the timeframes of the four styles.

Moving Averages in Scalping

In scalping on the 15m and 30m charts, an EMA 50 covers only twelve and a half to 25 hours, and an SMA 200 two to four days. Scalpers use a long average mainly as a direction filter: if the price lies above a rising SMA 200, they look only for upward entries. For the entry itself, they watch for retreats at a shorter average that point in this direction. Breaks of short lines are frequent at these levels and often just noise; a single close beyond an EMA is therefore rarely enough for a trade. The stop lies beyond the pullback low, not directly at the line, because the price often pierces it briefly with a wick. Because target and stop are only a few points apart, spread and slippage weigh heavily. Trading takes place mainly in the liquid London and New York sessions; in the quiet Asian session, the price often swings around the lines. The holding period is a few minutes to a few hours.

Moving Averages in Day Trading

In day trading on the 1h and 2h charts, an EMA 50 covers two to four days and an SMA 200 roughly eight to 17 days. For the larger direction, day traders consult the 4h or 8h chart: if the average there points upward, they trade upward retreats on the 1h chart and avoid downward breaks. A classic entry is the first pullback to a rising EMA after the start of a session. The stop lies below the low of the pullback, the target at the day's last swing high. Because all positions are closed by the end of the trading day, day traders check before entering whether enough time remains to reach the target. A break in the evening or at night has little trading behind it and is often taken back the next morning. Several averages lying close together reinforce a zone; if they lie far apart, the market is already on the move.

Moving Averages in Swing Trading

In swing trading on the 4h and 8h charts, traders hold positions for days to a few weeks. An EMA 50 here covers about eight to 17 days, an SMA 200 roughly one to two months. Swing traders use the SMA 200 as the boundary between a buyers' and a sellers' market and trade pullbacks to the EMA 50 in the direction of the trend. A retreat carries more weight if the line coincides with a zone on the 12h or 1d chart. Entry comes after the close of the candle that closes away from the line; the stop lies beyond the pullback low. For open positions, the average often serves as a trailing stop: as long as the price closes above the rising EMA 50, the position stays open. For many, a break of the SMA 200 on the 8h chart is a reason to reassess the direction, but not yet an entry; they wait for the first pullback to the line from the new side. Because positions run overnight and often over the weekend, swing traders allow for gaps at the start of the week in currencies, while cryptocurrencies trade without a break.

Moving Averages in Position Trading

In position trading on the 12h and 1d charts, trades last weeks to months. An EMA 50 here covers 25 to 50 days, an SMA 200 on the daily chart 200 days, that is, a good half year and more. Since FinScans has no timeframe higher than 1d, the SMA 200 on the 1d chart is the most important trend filter for position traders: above it they look for buys, below it for sells. A pullback to this line in an intact trend is a rare but closely watched entry. Breaks of the SMA 200 come late and often trigger a longer phase in which the price swings around the line; position traders then wait until one side prevails. They usually open new positions only when interest rate policy and economic data point in the same direction. Because the distance between the price and a long line can become large, a stop beyond the line often lies far away; this calls for a correspondingly smaller position size.

StyleTimeframeEMA 50 covers aboutSMA 200 covers aboutHolding periodWatch especially
Scalping15m, 30m12.5 to 25 hours2 to 4 daysMinutes to a few hoursdirection of a long average as a filter
Day trading1h, 2h2 to 4 days8 to 17 daysWithin the dayfirst pullback to the EMA after the session start
Swing4h, 8h8 to 17 days1 to 2 monthsDays to a few weekspullback to the EMA 50 in the trend
Position12h, 1d25 to 50 days3 to 7 monthsWeeks to monthsposition relative to the SMA 200 on the 1d chart

Retreat at the Average or Golden Cross?

Both signals are based on moving averages, but they measure different things. Retreats and breaks are about the price and a single line; the golden cross and death cross are about two lines.

The price reacts immediately, so retreats and breaks come early, often in the very first candle of a move, and false signals are correspondingly frequent. With the golden cross and death cross, the fast average first has to move above or below the slow one; the signal comes later, but filters out short swings. Many traders combine both: the cross sets the direction, a retreat provides the entry.

FeaturePrice at the averageCross of two averages
What meetsClose and one lineTwo lines
TimingEarly, possible with every candleLate, both lines have to move
False signalsFrequent, especially with short periodsLess frequent, but later entries
Typical useEntry within a running trendConfirming a trend change
Example triggers“EMA 50 Retreat Up”, “SMA Break Down”“SMA CROSS 50 200 Golden Cross”

What Mistakes Are Common with Moving Averages?

Most mistakes happen because the line looks clear and reliable on the chart, even though it only traces what has already happened.

  • Trading breaks in a sideways market: if the price swings around a flat line, every break is soon followed by the next one in the opposite direction.
  • Forgetting the lag: an average shows the end of a trend only once part of the countermove has already run.
  • Adjusting periods after the fact: anyone who changes the period until it fits the past perfectly rarely finds one that also works in the future.
  • Placing the stop directly on the line: the price often pierces it briefly with a wick; anyone who places the stop there and does not adjust the position size goes against sound risk management.
  • Looking at too many averages at once: with so many types and periods, there is always a line that happens to fit.

How Moving Average Triggers Are Named in FinScans Signals

On the signal page, the triggers appear in the trigger table, each with an arrow: ▲ means FinScans counts the trigger on the bullish side, ▼ on the bearish side. The name first states the average and then the event:

  • “… Retreat Up” (▲) and “… Retreat Down” (▼): Retreat; the price approaches the line and turns upward or downward, respectively.
  • “… Break Up” (▲) and “… Break Down” (▼): Break; the close crosses the line upward or downward, respectively.
  • “HMA Direction Up” (▲) and “HMA Direction Down” (▼): The line of the Hull moving average turns upward or downward, respectively.
  • “MAMA Cross Up” (▲) and “MAMA Cross Down” (▼): The MAMA crosses its companion line FAMA upward or downward, respectively.

Retreat and Break exist for each of these averages: SMA 50, SMA 200, EMA 50, and EMA 200 with the period in the name; SMA, EMA, WMA, TRIMA, DEMA, TEMA, ZLMA, HMA, ALMA, T3, KAMA, VIDYA, and MCGD (McGinley Dynamic) without the period in the name; plus “MA” as a general average and “MAMA PRICE” for the price relative to the MAMA. This results in names such as “EMA 200 Retreat Up” or “KAMA Break Down”. The periods count in candles of the respective timeframe. Crosses of two averages, such as “SMA CROSS 50 200 Golden Cross”, are explained on the page about the golden cross and death cross.

Moving average triggers are very common: at least one appears in a good three out of four signals. They almost always appear in signals of their own direction; only with “HMA Direction” and “MAMA Cross” is this clearly less often the case. The signal page shows no class for indicators. Such a trigger almost never stands alone: FinScans combines it with the other triggers of the same signal into an overall direction. Whether the signal runs with or against the larger move is shown by the trend across the eight timeframes and the overall assessment.

The following block shows current data on these triggers. The hit rate should always be read relative to the average: if it is above, the trigger has a statistical edge; if it is below, it is better used as a hint than as the sole reason to enter. The rates can vary considerably by trading style, because there is more noise on short timeframes. The distances to target and stop also play a role: a tight stop is hit more often than a wide one, a distant target less often than a near one.

What the Machine Reports, What You Check Yourself

On the signal page, these triggers appear for forex and crypto pairs; their name states the average and the event, not the position in the larger picture. Whether a retreat or break offers a viable setup is something you decide yourself in hybrid trading.

  • The machine reports, for example, “EMA 50 Retreat Up” or “SMA 200 Break Down”; you check on the chart whether the line is rising, falling, or flat.
  • The signal page shows the trigger's arrow; you check whether the retreat or break points in the direction of the trend on the higher timeframes.
  • The machine provides the trend across eight timeframes; you check whether the price is swinging around the line in a sideways phase.
  • The data block shows the hit rate so far; you check the economic calendar to see whether a break coincided with a scheduled event.
  • The signal page gives target and stop; you measure the distance from the entry to beyond the pullback low and work out whether the risk/reward ratio fits your risk management.

Frequently asked questions

Which Moving Average Is the Best?

None is the best in every situation. Short and fast averages report moves early but produce more false signals; long and smooth ones come late but are calmer. It makes sense to settle on a few averages that suit your own trading style and not to switch them constantly.

What Is the Difference Between the SMA and the EMA?

The SMA weights all candles in the period equally; the EMA gives the newer candles more weight. The EMA therefore reacts faster to turns, but also fluctuates more. With the same period, the EMA usually lies closer to the price than the SMA in a trend.

Why Are the SMA 50 and SMA 200 Considered Especially Important?

Because a great many market participants watch them, above all on the daily chart. If the price reaches one of these lines, many act at the same time; this often produces a reaction there. The periods 50 and 200 have no special mathematical property.

What Does “Retreat” Mean in the Triggers?

At FinScans, “Retreat” stands for a bounce: the price approaches the average and turns away without closing on the other side. By contrast, “Break” means that the close crosses the line. The words “Up” and “Down” indicate the direction in which the price then moves.

Sources

  • Murphy, John J.: Technical Analysis of the Financial Markets, New York Institute of Finance, 1999.
  • Kaufman, Perry J.: Trading Systems and Methods, John Wiley & Sons, 2013.
  • Ehlers, John F.: Rocket Science for Traders, John Wiley & Sons, 2001.

Suits these trading styles

Related topics

None of this is investment advice. finscans describes data and how it is processed; every decision, and its consequences, remain yours.