Moving Averages in Forex: SMA vs EMA and How to Use Them
Moving averages in forex explained: how the SMA and EMA are calculated, why they lag, and how to use them for trend, dynamic support and crossovers.
A forex chart is noisy. Every candle wobbles, and it is easy to lose sight of where price is heading. Moving averages are the oldest tool for cutting through that noise, and they are on almost every chart you will ever see.
Quick answer: Moving averages in forex smooth price by averaging recent closes, so the trend is easier to see. A simple moving average (SMA) weights every close equally; an exponential moving average (EMA) weights recent closes more, so it turns sooner but reacts to more noise. Traders use them as trend filters, dynamic support and resistance, and crossover signals.
What is a moving average in forex?
A moving average is the average closing price over the last few candles, recalculated every time a new candle closes. Join those averages up and you get a smooth line that follows price around the chart. It moves because the window slides forward: each new close joins and the oldest drops out.
The number of candles in the window is the period. A 20-period moving average on a daily chart averages the last 20 daily closes; the same setting on a one-hour chart averages the last 20 hourly closes. The period is counted in candles, not days, so the meaning of any setting depends on the timeframe you are looking at.

A moving average is an indicator: a calculation drawn from past prices. That one fact explains both its strength and its weakness. Because it averages several closes, one wild candle cannot drag it far, so the line shows the underlying direction more clearly than the candles do. But because it is built entirely from the past, it always lags. When price turns, the average keeps heading the old way for a while, because most of the closes inside its window still belong to the old move.
That lag is the price of smoothing, and the Academy lesson Indicators 101 shows the trade-off on a live chart. Every decision you make about moving averages, from which type to use to which period to pick, is a decision about how much lag you will accept in exchange for how much less noise. If you are new to reading the candles themselves, our guide on how to read candlestick charts is the place to start, because a moving average is only ever a summary of them.
One more detail matters in a market that never closes. Your moving average is built from each candle’s close, and in a 24-hour market the daily close depends on your platform’s server time, so daily averages can differ slightly between platforms. Even official benchmarks are a convention: the European Central Bank publishes a single daily euro reference rate at a fixed time each working day, which is useful for reference but is not a price you can trade.
How the simple moving average (SMA) is calculated
The simple moving average is exactly what it sounds like. Add up the last n closes and divide by n. A 5-period SMA adds the last five closes and divides by five; a 20-period SMA adds the last 20 and divides by 20.
Each close in the window carries the same weight. In a 20-period SMA, every close counts for 5% of the result, whether it happened yesterday or four weeks ago. When the next candle closes, the oldest one drops out completely and the newest one comes in at the same 5%.
That equal weighting has a quirk worth knowing. The SMA can move because of a close that is about to leave the window, not just one that has arrived. If a big down day from 20 sessions ago drops out, the 20-period SMA can jump up even on a quiet day. Traders call this the drop-off effect.
The period you choose sets the balance between smooth and responsive. Try it in the playground below: drag the period down towards 5 and the line hugs price, turning with almost every swing. Drag it up towards 50 and it becomes a calm, slow curve that ignores most of the wiggles but reacts late to genuine turns.
Simple moving average on an illustrative EUR/USD series. Short periods hug the price and turn with every swing; long periods are smooth but react late.
Read the result with two questions. Which way is the average sloping? A rising average means recent closes are, on balance, higher than the ones dropping out. Which side of it is price on? Price holding above a rising SMA is one of the simplest pictures of an uptrend there is; price below a falling one is the mirror image. Our Academy lesson on trends defines a trend by its highs and lows first, and the moving average is best used to confirm that read rather than replace it.
How the exponential moving average (EMA) works
The exponential moving average solves one complaint about the SMA: that yesterday’s close counts no more than one from weeks ago. The EMA gives the newest close the most weight and lets older closes fade gradually rather than dropping off a cliff.
It does this with a multiplier, usually written k:
k = 2 ÷ (n + 1), where n is the period.
Each new EMA value is then the previous EMA nudged towards the latest close by that fraction:
EMA today = (close − EMA yesterday) × k + EMA yesterday
For a 5-period EMA, k is 2 ÷ 6 = 0.3333, so each new close moves the average a third of the way towards it. For a 20-period EMA, k is 2 ÷ 21 = 0.0952, so the newest close carries about 9.5% of the weight, compared with a flat 5% in the 20-period SMA. For a 200-period EMA, k is only about 0.01.
Because the formula needs a previous EMA, the first value has to come from somewhere. The usual approach is to seed it with the SMA of the first n closes, then switch to the formula. Some platforms seed with the very first close instead, which is why two charts can show slightly different EMA values early on. After a few dozen candles the difference fades away.
The 2 ÷ (n + 1) multiplier is chosen so that, on average, the data inside an EMA is the same age as the data inside an SMA of the same period. On a smooth, steady trend the two lines sit almost on top of each other. The difference shows up when price changes pace or direction: the EMA has more of its weight on the newest closes, so it notices the change sooner. That is exactly what the lag diagram above shows.
The worked example below does both calculations by hand on seven closes, so you can see the numbers move.
SMA vs EMA: lag versus noise
Neither is better. The SMA vs EMA choice is a trade between lag and noise. A faster line reacts sooner to real turns and also to false ones; a slower line ignores more false turns and also reacts later to real ones. There is no setting that is quick and calm at the same time.
| Simple moving average (SMA) | Exponential moving average (EMA) | |
|---|---|---|
| How it weights closes | Equally across the window | Most weight on the newest close, fading over time |
| Reaction to a turn | Later | Sooner |
| Reaction to one-off spikes | Smaller | Larger |
| Drop-off effect | Yes: an old close leaving can move it | Barely: old closes fade gradually |
| Typical use | Longer-term trend reference, such as the 200 | Shorter-term trend and pullback reference, such as the 20 |
Switch the playground below between SMA and EMA at the same period and watch where the lines part company. On the smooth stretches they almost overlap. At the turns, the EMA bends first.
Switch between SMA and EMA at the same period. On smooth stretches the two lines nearly overlap; at turning points the EMA bends first because it leans on the newest closes.
In practice, consistency matters more than the choice. Many traders use an EMA for shorter periods, where responsiveness helps with pullbacks, and an SMA for very long periods such as the 200, where smoothness is the point. What matters is that you pick one, learn how it behaves on your pairs and timeframe, and stop swapping it every time a trade goes wrong.
20, 50 and 200: the common moving average periods
Three periods turn up on more charts than any others.
- 20-period. Roughly a month of trading days on a daily chart. A short-term trend reference that price pulls back to often in a steady trend.
- 50-period. A medium-term reference, around ten weeks of daily candles. Often used as the line a healthy trend should not close far beyond.
- 200-period. The long-term reference. On a daily chart it covers most of a year, and many traders treat price above or below it as the broad trend.
There is nothing magic in these numbers. They are popular because they are round and because they are popular: when enough traders watch the 50 and 200 moving average, orders cluster around them, which can make them behave a little like levels. That effect is real but modest. A 48-period average is not meaningfully worse than a 50; it is just less watched. Pick a period because it suits your timeframe and holding time, not because a forum calls it the one that works.
How to use moving averages: four jobs they do well
There are four common ways to use moving averages on a forex chart, and most traders combine two or three.
1. A trend filter
The simplest and arguably most useful job. Decide in advance that you will only look for buys when price is above a rising average, and only for sells when it is below a falling one. You are not using the line to time anything; you are using it to stop yourself trading against the obvious direction. On a daily chart, a 50- or 200-period average works well for this. When the average is flat and price keeps crossing it, the filter is telling you something just as useful: there is no clear trend, so trend-following tools will struggle.
2. Dynamic support and resistance
In a healthy trend, price tends to pull back towards a shorter moving average and then resume. Because the line rises with the trend, it acts as dynamic support, a floor that moves, unlike the fixed horizontal support you draw from past turning points. In a downtrend the same line acts as dynamic resistance on rallies.
Treat the average as a zone, not an exact price. Price will often poke a few pips through it, or turn a few pips short of it. What you are watching for is a pullback that slows near the line and then shows buyers returning, ideally with a clear candle. A pullback that slices through the average and closes well beyond it is a different message.
3. Crossovers
A moving average crossover uses two averages, a fast one and a slow one. When the fast average crosses above the slow one, the short-term average price has moved above the longer-term one, which is read as momentum turning up. A cross below is the opposite. The best-known pair is the 50 and 200 on a daily chart: the 50 crossing above the 200 is often called a golden cross, and crossing below a death cross. The names are dramatic; the signal is slow, and by the time it appears much of the move is often already over. The next section explains where crossovers go wrong.
4. Distance from the average as stretch
The fourth use looks at how far price has run from its average. A moving average is, in effect, the recent fair value. When price races far above it, the move is stretched: buyers who arrive late are paying well above the recent average, and the market often pauses or pulls back to let the average catch up.
Use stretch as a brake. A big gap between price and its average is a good reason not to chase a move that has already run, and to wait for a pullback. It is a poor reason to sell into a strong uptrend, because a trend can stay stretched far longer than feels reasonable.
Moving average crossovers, and why they whipsaw in ranges
Crossovers are popular because they are mechanical: two lines and a rule. That is also their weakness. A crossover system assumes there is a trend to catch. When there is, it works tolerably, if late. When there is not, it falls apart.
In a range, price swings back and forth between a floor and a ceiling. A fast average follows each swing; a slow one goes flat through the middle. The fast line crosses the slow one at almost every swing, and because both lag, each cross arrives after the swing is already half done. You buy near the top of the range, sell near the bottom, and repeat. Traders call this a whipsaw: a string of small losses from signals that reverse before they pay.

Lengthening the periods does not cure it. Slower averages cross less often, but their signals arrive even later, and in a choppy market they still fail. The real fix is to recognise the conditions first:
- A flat slow average is the clearest warning. If the 50 is moving sideways, a crossover against it has nothing to follow.
- Price crossing the average repeatedly in a short space of time means the average is sitting in the middle of a range.
- Clear horizontal levels on both sides, with price bouncing between them, tell you to trade the range or wait, not to trade crossovers.
None of this makes crossovers useless. A cross that happens after a breakout from a range, with the slow average turning to follow it, is confirming something the chart already shows. A cross in the middle of a sideways mess is just noise with a label on it. Our lesson on chart patterns covers how ranges form and break, which is the context a crossover needs.
Combining moving averages with support, resistance and candles
A moving average on its own is a summary of the past. It becomes useful when it agrees with something else on the chart. Traders call that agreement confluence: two or more independent reasons pointing to the same price area.
The most useful combination is an average and a horizontal level meeting in the same place. Say EUR/USD breaks above resistance at 1.0850, rallies, and then pulls back. If the old resistance, now likely support, sits right where a rising moving average has climbed to, that zone has two reasons to hold rather than one. Add a clear rejection candle there, such as a hammer, and you have a setup worth considering, not just a line being touched. Step through the chart below.
Combining a moving average with support and resistance: the trend is up, old resistance at 1.0850 has become support, a 10-period EMA has risen to about the same price, and a hammer forms there. Illustrative prices.
Notice the order. The trend and the level come from price itself, the average adds weight to a zone the chart already marked, and the candle shows buyers acting there. The average was supporting evidence, not the first reason. Our guide to support and resistance in forex explains how to draw the level, and 12 candlestick patterns every trader should know covers the hammer and other rejection candles.
Two more combinations are worth knowing:
- Higher-timeframe average, lower-timeframe entries. Use a 50- or 200-period average on the daily chart to decide direction, then look for entries on the four-hour chart only in that direction. The lesson on multi-timeframe analysis shows how.
- The average as a stop reference, not the stop itself. If you buy a pullback to an average, your stop loss belongs below the swing low or the level, with some room, not one pip under the line where everyone else’s stop sits. See where to place a stop loss for the methods.
Finally, resist adding more averages. One or two lines on a chart are information; five are decoration. Every moving average is built from the same closing prices, so stacking them does not give you independent opinions, only the same opinion at different speeds.
Common moving average mistakes
Trading every crossover
Taking every cross as a signal mostly produces a lot of trades. In a range most of them will whipsaw. Check the slope of the slow average and the structure of the chart before treating a cross as anything more than a note.
Hunting for the perfect period
It is tempting to test periods until one fits the last few months perfectly: a 23 EMA here, a 61 SMA there. A setting tuned that tightly to past data has learned the noise, not the market, and usually fails once conditions change. Pick a sensible period, then judge it over a long stretch of trades.
Treating the line as an exact price
Price does not respect a moving average to the pip. Expect it to poke through or fall short. Enter on evidence that the pullback has ended, such as a rejection candle, rather than on a limit order resting exactly at the average.
Forgetting that it lags
A moving average reports what has happened; it cannot warn you before a turn. If price has already broken a key level and closed hard against your trade, waiting for the average to confirm the damage only makes the loss bigger.
Using it on the wrong timeframe
A 200-period average on a five-minute chart covers less than 17 hours. It means something quite different from the 200 on a daily chart. Know what time span your average actually covers before you read anything into it.
Frequently asked questions
Which is better for forex, SMA or EMA?
Neither is better in general. The EMA puts more weight on recent closes, so it turns sooner but reacts to more noise. The SMA is smoother but slower. Many traders use an EMA for short periods, such as 20, and an SMA for long ones, such as 200. Consistency matters more than the choice.
What are the best moving average settings for forex?
There is no single best setting. The 20, 50 and 200 periods are the most widely watched, which gives them some self-fulfilling weight, but they are conventions rather than magic numbers. Choose a period that suits your timeframe and how long you hold trades, then stick with it long enough to judge it.
What is the 50 and 200 moving average crossover?
It is when the 50-period average crosses the 200-period average, usually on a daily chart. A cross above is often called a golden cross and a cross below a death cross. Both are slow, lagging signals: they describe a trend change that is usually well under way, and they whipsaw when the market moves sideways.
Do moving averages work in forex?
They work as descriptions of trend, not as predictions. A moving average shows direction and acts as a reference for pullbacks, and it is useful when combined with levels and candles. Used alone as a buy and sell rule, especially in ranging markets, it produces many false signals. Test any rule before risking money on it.
What timeframe should I use moving averages on?
Use them on the timeframe you trade and one above it. A 50- or 200-period average on the daily chart is a common way to set direction, with entries timed on the four-hour or one-hour chart. Remember that the period counts candles, so the same setting covers very different time spans on different charts.
Free course
Learn this step by step
“Reading Price Charts” is a free BrokerCut Academy course: 10 short lessons (about 80 minutes), quizzes, interactive tools and a certificate when you finish.
Enrol free


