Back to Blog
AI TradingStrategy

What Is a Moving Average and Why Does Every Trader Have It on Their Chart?

Rahul Bablani

 


If you have ever pulled up a stock chart for the first time and seen those smooth curvy lines floating around underneath the price, you were looking at moving averages. And if you had no idea what they were or why they were there, you are not alone. Moving averages are probably the single most widely used tool in all of technical analysis, and yet most people who are new to trading just kind of ignore them because nobody ever explains what they actually do in plain English.

This post is going to fix that. By the end of it you will understand what a moving average is, why traders use them, the difference between the two main types, and how to actually apply them when you are looking at a stock chart. No finance degree required.


What Is a Moving Average?

The concept is honestly pretty simple once you strip away all the jargon. A moving average is just the average price of a stock over a specific period of time, calculated over and over again as new price data comes in.

Here is a basic example. Let's say you want to calculate a 5-day moving average for a stock. You take the closing prices for the last five trading days, add them all up, and divide by five. That gives you the average. Then the next day, you drop the oldest price, add the newest one, and calculate the average again. You keep doing this every single day, which is why it's called a "moving" average. The window of time you are averaging over literally moves forward with each new trading day.

When you plot all of those averages on a chart, you get a smooth line that follows the price but without all the crazy up and down noise you see in the actual stock price. That smoothing effect is exactly the point. The raw price of a stock can jump around like crazy from day to day based on random news, big trades, or just market weirdness. The moving average cuts through all of that noise and shows you the general direction the stock has been moving over a longer period.

Think of it like your GPA. Your grade on one quiz might be completely random and not really tell you much about how you are doing in a class. But your GPA across an entire semester smooths out all of those individual ups and downs and gives you a clearer picture of your overall performance. Moving averages work the same way for stock prices.


The Two Types You Actually Need to Know: SMA and EMA

This is where most beginners get confused because there are actually different kinds of moving averages, and the two most common ones work a little differently from each other. They are called the Simple Moving Average and the Exponential Moving Average.

The Simple Moving Average, which people abbreviate as SMA, is exactly what the name says. You take the prices from however many days you are measuring, add them all up, and divide by the number of days. Every single day in that window gets equal weight. If you are looking at a 20-day SMA, the price from 20 days ago counts just as much as the price from yesterday. It is a pure, straightforward average with no tricks involved.

The Exponential Moving Average, abbreviated as EMA, does things a little differently. Instead of giving every day equal weight, the EMA puts more emphasis on recent prices and less emphasis on older prices. The math behind this gets complicated pretty quickly, but the basic idea is that what happened yesterday matters more than what happened two weeks ago. The formula is set up so that the weight of each older price point decreases exponentially the further back you go, which is where the name comes from.

So which one is better? Honestly that is a debate traders have been having forever and there is no universal right answer. Here is the practical difference between them.

Because the EMA weights recent prices more heavily, it reacts faster when a stock starts moving in a new direction. If a stock suddenly starts dropping hard, the EMA will turn downward faster than the SMA will. This makes the EMA more useful for short term traders who want to catch moves quickly and do not want to be the last person to know the trend is changing.

The SMA is slower and smoother. Because it weighs all days equally, it takes longer to react to sudden price changes. Some traders actually prefer this because it means the SMA filters out more noise and gives fewer false signals. If you are a longer term investor who does not want to be whipsawed out of a position every time there is a random one-day spike or drop, the SMA might actually serve you better.

A lot of traders end up using both at the same time, which sounds confusing but actually makes a lot of sense once you see it in practice.


The Most Common Timeframes and What They Mean

Moving averages are not a one-size-fits-all tool. You can calculate them over basically any timeframe you want, but there are a handful of periods that traders have standardized around because they tend to be the most useful.

The 20-day moving average is one of the most commonly used for short to medium term analysis. It roughly represents about a month of trading activity since markets are only open about 20 days per month. A lot of traders watch the 20-day to get a sense of near-term momentum. When a stock is consistently trading above its 20-day moving average, that is generally considered a sign of short term strength. When it falls below, traders start to get cautious.

The 50-day moving average is probably the single most watched number among institutional traders and retail investors alike. It represents roughly two and a half months of price action and is seen as a major indicator of medium term trend. You will hear financial news anchors talk about this one constantly. When a stock drops below its 50-day moving average, it is often treated as a warning sign. When it bounces off the 50-day and heads back up, people get excited. Earnings reports, product launches, and major news events are all often analyzed in the context of where they pushed a stock relative to its 50-day moving average.

The 200-day moving average is the big one for long term investors. It covers roughly a full year of trading and is used to determine whether a stock is in a long term uptrend or downtrend. If a stock is above its 200-day moving average, the general consensus is that the stock is in good long term health. If it is below, that is often interpreted as a sign that the stock is in trouble on a bigger time scale. A lot of fund managers and institutional investors use the 200-day as a filter for whether they want to even consider owning a stock at all.


The Golden Cross and the Death Cross: Two Signals Every Trader Talks About

Once you understand moving averages, two of the most famous signals in all of technical analysis start to make a lot of sense. They are called the Golden Cross and the Death Cross, and despite sounding like something out of a fantasy novel, they are completely real things that traders actually watch for and react to.

The Golden Cross happens when a short term moving average crosses above a long term moving average. The most classic version is when the 50-day moving average crosses above the 200-day moving average. This is generally interpreted as a bullish signal, meaning the stock might be entering a sustained uptrend. The idea is that short term momentum has gotten strong enough to pull the average of recent prices above the average of the last year, which suggests buyers are in control and the trend is shifting upward.

When a Golden Cross forms on a widely followed stock, it often gets covered by financial media, which draws in even more buyers who want to ride the potential uptrend, which can become something of a self-fulfilling prophecy in the short term.

The Death Cross is the opposite. It happens when the short term moving average crosses below the long term one, most commonly when the 50-day crosses below the 200-day. This is generally seen as a bearish signal suggesting the stock might be heading into a sustained downtrend. When the Death Cross forms, it tends to make headlines and can trigger a wave of selling from traders who use it as an automatic exit signal.

Now it is important to be honest here. Neither the Golden Cross nor the Death Cross is a perfect crystal ball. There are plenty of times where a Death Cross forms and the stock turns right around and rips higher, making everyone who sold look foolish. And Golden Crosses sometimes form right before a stock rolls over and drops. These signals are tools, not guarantees, and they work better when they are combined with other analysis rather than used in isolation.


Moving Averages as Support and Resistance

One of the most practical ways traders use moving averages that beginners often do not realize is as dynamic support and resistance levels. If you have read anything about technical analysis before, you probably know that support refers to a price level where a stock has historically had trouble falling below, and resistance refers to a level where it has had trouble pushing above.

Static support and resistance levels are fixed prices on a chart. But moving averages act as support and resistance that moves along with the stock over time, which is why they are described as dynamic.

Here is how this plays out in practice. Say a stock has been in a nice uptrend for several months, consistently closing above its 50-day moving average. Then one week it pulls back and the price touches the 50-day moving average line but does not close below it, then bounces back up. A lot of traders will interpret that touch and bounce as the 50-day acting as support, and some of them will actually buy the stock specifically at that point because they expect the level to hold.

This happens so often and with so many traders watching the same levels that the moving averages sometimes end up functioning as real support and resistance just because everyone is watching them and reacting to them the same way. You can literally watch this play out in real time on popular stocks by putting a 50-day or 200-day moving average on a chart and seeing how often the price reacts around those lines.


How This Connects to What You Already Know

If you read the MACD versus RSI post on this blog, you already have a foundation that connects directly to moving averages. The MACD indicator, which stands for Moving Average Convergence Divergence, is literally just built out of moving averages. It works by taking the difference between a 12-period EMA and a 26-period EMA, then plotting that difference as a line along with a 9-period EMA of that line as a signal line. In other words, when you are using MACD you are already looking at moving averages, just in a slightly more processed form.

The RSI works differently and is not based on moving averages, but traders often use RSI and moving averages together to get a more complete picture. For example, if the RSI is showing that a stock is oversold and the price is simultaneously sitting right on top of its 200-day moving average as support, that combination of signals gives traders a lot more confidence than either signal alone would.

This is the whole point of technical analysis. No single indicator tells you everything you need to know. Moving averages give you the trend. RSI tells you about momentum and potential reversals. Candlestick patterns show you what buyers and sellers are doing in real time. When several of these things line up and point in the same direction, that is when traders start to feel like a trade has a genuinely good risk-to-reward setup.


The Bottom Line

Moving averages are one of those tools that seem overly simple when you first learn about them but turn out to be incredibly powerful the more you understand how traders actually use them. The 50-day and 200-day moving averages are watched by some of the biggest money managers in the world. The Golden Cross and Death Cross generate actual news coverage. And the way moving averages act as support and resistance is something you can see playing out in real time every single trading day on almost any stock chart you pull up.

If you want to start applying this yourself, the best thing to do is just open up a charting tool, pull up a stock you follow, throw the 50-day and 200-day moving averages on the chart, and start watching how the price interacts with those lines over time. You will start seeing things you never noticed before, and it will make a lot of other technical analysis concepts click into place a lot faster.

The market rewards people who do their homework. Start learning the tools that the professionals actually use, and you will be ahead of most people your age who are investing on vibes alone.