StructureX

Home › Glossary

What is a moving average in trading?

In one line: A moving average is a line made by averaging the last set number of closing prices, updated with each new candle, to smooth out the noise.

Trading glossary · Updated 2026-10-21

A simple example

Say a stock closed at $10, $11, $12, $13 and $14 over 5 days. Add them up: $60. Divide by 5: $12. That's the 5-day moving average.

Tomorrow it closes at $15. Drop the oldest close ($10) and add the new one. Now it's ($11 + $12 + $13 + $14 + $15) ÷ 5 = $13.

Do that on every candle and you get a line that "moves" with price.

Two common kinds

TypeHow it worksFeels like
Simple (SMA)Every close counts the sameSlower, smoother
Exponential (EMA)Recent closes count moreFaster, reacts sooner

Common lengths are 20, 50 and 200 candles. On a daily chart, the 200-day is a well-known long-term line.

Why it matters

A moving average helps you see the direction of a Trend without the daily wiggles. Price mostly above a rising average? The trend points up. Mostly below a falling one? It points down.

Many traders also watch how price acts when it comes back to the line. It's also the building block of MACD. The full guide is moving averages explained.

A common mistake

Expecting it to call turns early. A moving average is built from past prices. It always lags. By the time two averages cross, a big part of the move may already be done.

Use it to describe the trend, not to predict it. Read where price last turned around first, then let the average back that up.

In a sideways market, price crosses the average again and again. That's a sign the line has little to say right now.

Questions

Which moving average is best for beginners?

There's no best one. A 20 and a 50 are easy to start with. Pick one or two and stick with them so you learn how they behave.

What is the 200-day moving average?

The average of the last 200 daily closes. Many people use it as a rough line between a long-term uptrend and downtrend.

What is a golden cross?

It's when the 50-day average crosses above the 200-day. It describes a trend that has already turned up. It isn't a promise of more.

Want the next step? We'll walk you through it.

Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.

Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytime

Or see the whole method, step by step:

See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)

One chart idea a day, in plain English. Follow along:

Follow on XFollow on TradingView