A moving average smooths a selected price series over time. SMA weights observations in its window equally; EMA gives progressively greater weight to more recent observations, with a commonly used smoothing factor α = 2/(n + 1). Both are derived from historical prices and can be used in explicitly defined trend, crossover or reference-level rules. A popular period or a widely watched line does not guarantee support, reversal or a trading edge. See Moving averages.
Example. In an illustrative EUR/USD daily scenario, EMA50 crosses above SMA200 after price has already risen by 300 pips. This is a mixed-average crossover, related to the golden-cross idea commonly illustrated with SMA50 and SMA200. It describes past prices and can occur well after a move starts. A rule may use pullbacks towards an average as candidate support, but neither a bounce nor a safe tight stop is guaranteed. During consolidation, repeated crosses of a relatively flat average can whipsaw a trading rule. EMA gives more weight to recent prices using α = 2/(n + 1); SMA weights the selected observations equally. Test the period, calculation and full entry/exit rule rather than assume either average always works in one market regime.
What does the EMA period mean?
An EMA with period n commonly uses α = 2/(n + 1), but n does not mean all older prices are discarded. The recurrence EMAₜ = α × priceₜ + (1 − α) × EMAₜ₋₁ retains their diminishing influence. The warm-up history and starting value therefore matter when comparing calculations. Source: MetaTrader 5: moving averages.
Short SMA and EMA check
Closes of 1.1000, 1.1010 and 1.1020 have SMA3 = 1.1010. For EMA3, α = 0.5; previous EMA 1.1000 and new Close 1.1020 give EMA 1.1010. Equality here does not make the methods identical on later bars.
Input series and signal availability
The input can be Close, another price or an indicator series; label it. Values can change on an unfinished candle. A completed-close crossover becomes known at the bar’s end. Plotting an average with an offset moves its display, not when information was acquired.
FAQ
Should I use SMA or EMA?
SMA weights the latest n observations equally; EMA uses diminishing weights and recursively retains the influence of older data. For comparable periods, EMA commonly reacts sooner to recent changes, but that does not automatically produce better signals. SMA200 is often used to describe a longer trend and EMA for more responsive rules. Validate the choice with data and your actual costs.
What are a golden cross and a death cross?
A golden cross is a faster average crossing above a slower one, commonly illustrated with SMA50 and SMA200; a death cross is the opposite. Specify the actual averages. These are lagging descriptions of price history, not guaranteed signals of a bull or bear market.
Which moving-average periods are commonly used?
Examples include 50, 100 and 200 for longer horizons and 9, 20 or 21 for shorter ones. These are conventions rather than magic values. Being widely watched does not itself prove a trading advantage; suitability depends on the instrument, interval and rule.
Why can moving-average crosses lose money in a range?
Price can repeatedly cross a relatively flat average in both directions, producing whipsaw. This is a limitation of particular crossing rules, not proof that averages work exclusively in trends or that every range-based use is invalid. Test the chosen application in different conditions.
Editor-in-chief, ForexMechanics.com • Macro & FX analyst
Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.
Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).
All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.