Day Trading Videos (27 lessons)
Next Lesson in this Course:

How to Trade with the Simple Moving Average

0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×

Before you dive into the content, check out this video on moving average crossover strategies.  The video is a great precursor to the strategies and more advanced topics detailed in this article.

Learn to Day Trade the Right Way:: See how you can learn to to trade stocks, futures and bitcoin risk-free.

So, what is the simple moving average?  Once you begin to peel back the onion, the simple moving average is anything but simple.

This article will cover a host of topics; to name a few, we will discuss the simple moving average formula, popular moving averages (5, 10, 200), some real-life moving average examples and a few crossover strategies, and my personal experience with the indicator.

There are a few additional resources I would like to point out before you proceed with the article; (1) Trading Simulator (you will need to practice what you have learned) and (2) additional moving average articles to get a broader understanding of the averages (Displaced Moving Average, Exponential Moving Average, Triple Exponential Moving Average).

Simple Moving Average Formula

The simple moving average (SMA) is the most basic of the moving averages used for trading. The simple moving average formula is calculated by taking the average closing price of a stock over the last "x" periods.

Let's take a look at a simple moving average example with MSFT.  The last five closing prices for MSFT are:

28.93+28.48+28.44+28.91+28.48 = 143.24

To calculate the simple moving average formula you divide the total of the closing prices and divide it by the number of periods.

5-day SMA = 143.24/5 = 28.65

I love the fact the SMA is just math.

I mean every indicator is based on math, but it's not some proprietary calculation with trademark requirements.

It's simple addition and divsion, for the entire world to share.

Generally speaking in life, the things that are of most value are given as gifts to help the world become a better place.

Popular Simple Moving Averages

Popular Simple Moving Averages

Popular Simple Moving Averages

In theory there are an infinite number of simple moving averages.

If you are thinking you will come up with some weird 46 SMA to beat the market let me stop you now.  It is important to use the most common SMAs as these are the ones the majority of traders will be using on a daily basis.

While I do not advocate you following everyone else, it is important to know what other traders are looking at for clues.  Below are the most common SMAs used in the market:

5 - SMA - For the hyper trader.  This shorter the SMA the more signals you will receive when trading.  The best way to use a 5-SMA is as a trade trigger in conjunction with a longer SMA period.

5 period simple moving average

5-Period SMA

10-SMA - popular with the short-term traders;  great for swing traders and day traders.

10 period simple moving average

10 SMA

20-SMA - the last stop on the bus for short-term traders.  Beyond 20-SMA you are basically looking at primary trends.

20 period simple moving average


50-SMA - used by traders to gauge mid-term trends.

50 period simple moving average

50 period simple moving average

200-SMA - welcome to the world of long-term trend followers.  Most investors will look for a cross above or below this average to represent if the stock is in a bullish or bearish trend.

200 period simple moving average

200-period simple moving average

Basic Rules for Trading with the SMA

Basic Rules for Trading with the SMA

Basic Rules for Trading with the SMA

Most traders will tell you to trade simple moving average crossovers and the profits will fall from the heavens.

Unfortunately, this is not accurate. Oftentimes stocks will tick over or under moving averages to only continue in the primary direction. This will leave you on the wrong side of the market and down on your position. Below are a few ways to make money trading the SMA.

This will leave you on the wrong side of the market and down on your position. Below are a few ways to make money trading the SMA.

Now that I have given you enough doubt before even attempting to trade with the simple moving average, let's review a few ways to make money with the SMA.

Going with the Primary Trend

  1. Look for stocks that are breaking out or down strongly
  2. Apply the following SMAs 5,10,20,40,200 to see which setting is containing price the best
  3. Once you have identified the correct SMA, wait for the price to test the SMA successfully and look for price confirmation that the stock is resuming the direction of the primary trend
  4. Enter the trade on the next bar

Fade the Primary Trend Using Two Simple Moving Averages

  1. Locate stocks that are breaking out or down strongly
  2. Select two simple moving averages to apply to the chart (ex. 5 and 10)
  3. Make sure the price has not been touching the 5 SMA or 10 SMA excessively in the last 10 bars
  4. Wait for the price to close above or below both moving averages in the counter direction of the primary trend on the same bar
  5. Enter the trade on the next bar

Real-Life Example going with the primary trend using the SMA

The simple moving average is probably one of the most basic forms of technical analysis.  Even hard core fundamental guys will have a thing or two to say about the indicator.

A trader has to be careful since there are an unlimited number of averages you can use and then you throw the multiple time frames in the mix and you really have a messy chart.

Below is a play-by-play for using a moving average on an intraday chart.  In the below example, we will cover staying on the right side of the trend after putting on a long position.

The below chart is from TIBCO (TIBX) on June 24, 2011.

I know this is a few years ago, but the market is destined to repeat prior setups; it's all human nature at the end of the day.

Simple Moving Average Example

Simple Moving Average Example

Notice how the stock had a breakout on the open and closed near the high of the candlestick.  A breakout trader would use this as an opportunity to jump on the train and place their stop below the low of the opening candle.  At this point, you can use the moving average to gauge the strength of the current trend.  In this chart example, we are using the 10-period simple moving average.

In this chart example, we are using the 10-period simple moving average.

Simple Moving Average - When to Sell

Simple Moving Average - When to Sell

Now looking at the chart above, how do you think you would have known to sell at the $26.40 level using the simple moving average?

Let me help you out here.  You would have had no clue.

Far too many traders have tried to use the simple moving average to predict the exact sell and buy points on a chart.  A trader might be able to pull this off using multiple averages for triggers, but one average alone will not be enough.

So save yourself the time and headache and use the averages to determine the strength of the move.

Now take another look at the chart.  Do you see how the chart is starting to rollover as the average is starting to flatten out?

A breakout trader would want to stay away from this type of activity since the money in this example grows as the stock increases in price.  Now again, if you were to sell on the cross down through the average, this may work some of the time, but over time you will end up losing money after you factor in commissions.

If you don't believe me, try simply buying and selling based on how the price chart crosses up or under a simple moving average.  Remember, if it was that easy, every trader in the world would be making money hand over fist.

Flat Simple Moving Average

Flat Simple Moving Average

Let's take another look at the simple moving average and the primary trend.  I like to call this the holy grail setup.

This is the setup you will see in books and seminars.  Simply buy on the breakout and sell when the stock crosses down beneath the price action.

The below is an intraday chart of Sina Corporation (SINA) from June 24, 2011.  Look at how the price chart stays cleanly above the 20-period simple moving average.

Simple Moving Average - Perfect Example

Simple Moving Average - Perfect Example

Isn't that a beautiful chart?  You buy on the open at $80 and sell on the close at $92.

A quick 15% profit in one day and you didn't have to lift a finger.

The brain is a funny thing.  I remember seeing a chart like this when I first started out in trading and then I would buy the setup that matched the morning activity.

I would look for the same type of volume and price action, only to later be smacked in the face by reality when my play did not trend as well.

This is the true challenge with trading, what works well on one chart, will not work well on the other.  Remember, the 20-SMA worked well in this example, but you can not build a money making system off one play.

Real-Life Example going against the primary trend using the SMA

Another way to trade using the simple moving average is to go counter to the trend.  One of the more higher probability plays is to counter

One of the higher probability plays is to go counter to extreme gap moves.  There have been a number of studies regarding gaps.  Depending on the period in the stock market (60s flat line, late 90s boom, or volatility of the 2000s) it's a safe assumption that gaps will fill 50% of the time.  Another validation a trader can use when going counter is a close under or over the simple moving average.  In the example below, FSLR had a solid gap of ~4%.  After the gap, the stock trended up strongly.

Another validation a trader can use when going counter is a close under or over the simple moving average.  In the example below, FSLR had a solid gap of ~4%.  After the gap, the stock trended up strongly.

FSLR Short

FSLR Short

You have to be very careful with counter trade setups.  If you are on the wrong side of the trade, you and others with the same position will be the fuel for the next leg up.

Let's fast forward a few hours on the chart.

FSLR Short Trend

FSLR Short Trend

Whenever you go short and the stock does little to recover and/or the volatility dries up, you are in a good spot.  Notice how FSLR continued lower throughout the day; unable to put up a fight.  Now let's jump forward one day to July 1, 2011.

Guess what happened?

You got it, the gap filled.

FSLR Gap Filled

FSLR Gap Filled

Simple Moving Average Crossover Strategy

Simple Moving Average Crossover Strategy

Simple Moving Average Crossover Strategy

The moving averages by themselves will give you a great roadmap for trading the markets.

But what about moving average crossovers as a trigger for entering and closing trades? Let me take a clear stance on this one and say I'm not a fan of this strategy.

First, the moving average by itself is a lagging indicator, now you layer in the idea that you have to wait for a lagging indicator to cross another lagging indicator is just too much delay for me.

If you look around the web, one of the most popular simple moving averages to use with a crossover strategy is the 50 and 200 day.  When the 50 simple moving average crosses above the 200 simple moving average it generates a golden cross.

Conversely, when the 50-simple moving average crosses beneath the 200-simple moving average it creates a death cross.

I only mention this so you are aware of the setup, which may be applicable for long-term investing.  Since Tradingsim focuses on day trading let me at least run through some basic crossover strategies.

Moving Average Crossovers and Day Trading

Two Simple Moving Average Crossover Strategies

The first thing to know is you want to pick two moving averages that are somehow related to each other.

For example, 10 is half of 20.  Or the 50 and 200 are the most popular moving averages for longer term investors.

The second thing is coming to understand the trigger for trading with moving average crossovers.  A buy or sell signal is triggered once the smaller moving average crosses above or below the larger moving average.

Buying on a Cross Up

In the below charting example of Apple from 4/9/2013, the 10-period SMA crossed above the 20-period SMA.  You will notice that the stock had a nice intraday run from $424 up to $428.50

Moving Average Crossover

Isn't that just a beautiful chart?  The 10-period SMA is the red line and the blue is the 20-period.  In this example, you would have bought once the red line closed above the blue which would have given you an entry point slightly above $424.

Selling a Cross Down

Let's take a look when a sell action is triggered.    In this example, a sell action was triggered when the stock gapped down on 4/15/2013.

Moving Average Crossover

Now in both of these examples, you will notice how the stock conveniently went in the desired direction with very little friction.

Well, this is the furthest thing from reality.  If you look at moving average crossovers on any symbol you will notice more false and sideways signals than high return ones.  This is because most of the time stocks on the surface move in a random pattern.

Remember people, it is the job of the big money players to fake you out at every turn in order to separate you from your money.

With the rise of hedge funds and automated trading systems, for every clean crossover play I find, I can probably show you another dozen or more that don't play out well.  This again is why I do not recommend the crossover strategy as a true means of making money day trading the markets.

My Personal Journey Day Trading Simple Moving Averages

Now that you have all the basics, let me walk you through my experience day trading with simple moving averages.

My Journey Day Trading with Simple Moving Averages

My Journey Day Trading with Simple Moving Averages - Infographic

You could be saying to yourself, "Why do I care about this guy's experience? Mine will be different?"

In theory, yes, but there are likely parallels between our paths and I can hopefully help you avoid some of my mistakes.

#1 - Newbie

It was spring 2007 and I was just starting out in day trading.

I felt like volume and moving averages were all I needed to keep me safe when trading. I read all of the books and browsed tons of articles on the web from top "gurus" about technical analysis.

I then took a look at the charts and from what I could see, price respected the 10-period moving average all the time.

I didn't know at this point you see what you want to in charts and for every winning example, there are likely dozens that have failed.

I felt that if the stock closed below the simple moving average and I was long, I should look to get out. But, if the stock could stay above the average, I should just hold my position and let the money flow to me.

Let's walk through a few chart examples to really get a feel for my delusions of grandeur.

Riding the Simple Moving Average

Riding the Simple Moving Average

I'm not even going to worry about giving you the ticker of the above chart because it's honestly irrelevant.

The point is that I just saw hundreds and I mean hundreds of charts with this pattern.

The pattern I was fixated on was a cross above the 10-period moving average and then a rally to the moon.

I remember feeling such excitement of how easy it was going to be to make money day trading this simple pattern.

Now, shifting gears for a second; anyone that knows me knows that I have a strong analytical mind.

I will review the numbers and then run them all again to make sure everything nets out.

Hence is my second phase on this journey.

#2 - Three Lines

At this point in my journey, it's about the summer of 2007.  I am placing some trades and trying different systems, but nothing with great success.

I am using the 10-period simple moving average in conjunction with bollinger bands and a few other indicators.

I don't have the spaghetti chart just yet, but it's a little busy.

So, after reviewing my trades, I, of course, came to the realization that one moving average is not enough on the chart.

The need to put more indicators on a chart is always the wrong answer for traders. But, we must go through this process in order to come out of the other side.

I felt that if I combined a short-term, mid-term and long-term simple moving average, I could quickly validate each signal.

I would use the short=term to pull the trigger when it crossed above or below the mid-term line, mid-term as a means to validate the short-term trigger and the long-term to ensure I was on the right side of the trend.

Did that just confuse you a little?

Let's illustrate this through the chart.

Three Simple Moving Averages - My Journey

Three Simple Moving Averages - My Journey

In the above example, the blue line is a 5-period SMA, the red line is a 10-period SMA and the purple line is a 20-period SMA.

You, of course, are welcomed to use any setting that works best for you, but the point is each moving average should be a multiple or two from one another to avoid chaos on the chart.

I used the shortest SMA as my trigger average. When it crossed above or below the mid-term line I would have a potential trade.

The sign I needed to pull the trigger was if the price was above or below the long-term moving average.

So, going back to the chart the first buy signal came when the blue line crossed above the red and the price was above the purple line. This would have given us a valid buy signal.

Then after a nice profit, once the short line crossed below the red line, it was our time to get out.

Did this mean we should have gotten short?

No. Notice that the price was still above the purple line (long-term), so no short position should have been taken.

This way we were not always in a long or short position, just because the price is closing above or below a moving average.

Looking back many years later, it sounds a bit confusing, but I do have to compliment myself on just having some sort of a system.

How do you think this all played out?

Don't worry, I'm going to tell you now.

#3 - Buy and Sell Signals

At this point of my journey, I am still in a good place. That's what I was hoping to represent with the green smiley faces. The green also represents the expectation of the money flow as well.

It's around late summer at this point and I was ready to roll out my new system of using three simple moving averages.

It became apparent to me rather quickly that this was much harder than I had originally anticipated.

First off, it was tough trying to figure out which stocks to pick.

Once I landed on trading volatile stocks, they either gave false entry signals or did not trend all day.

This level of rejection from the market cut deeply. I remember staring at the screen thinking, "Why is this not working?"

Charts began to look like the one below and there was nothing I could do to prevent this from happening.

Multiple Signals

Multiple Signals

What do you think I did next?

That's right, my analytical side kicked in and I needed to review more data.

#4 Settings

Anyone that has been trading for longer than a few months using indicators at some point has started tinkering with the settings. Well, I took that concept to an entirely different level.

I was using Tradestation at the time trading US equities and I began to run combinations of every time period you can imagine.

I would then run Tradestation's  report optimizer to see how things would have worked out.

45 simple moving average

45 simple moving average

Two period simple moving average

Two-period simple moving average

As you can see, these were desperate times. I was running all sorts of combinations until I felt I landed on one that had decent results.

Now, one point to note, I was running these results against one stock at a time.

The goal was to find an Apple or another high volume security I could trade all day using these signals to turn a profit.

Similar to my attempt to add three moving averages after first settling with the 10-period as my average of choice, I did the same thing of needing to add more validation checks this time around as well.

So, instead of just moving forward with the settings I had discovered based on historical data (which is useless the very next day, because the market never repeats itself), I wanted to outsmart the market yet again.

My path to this edge was to displace the optimized moving averages.

This must be painful to read, it surely is painful for me to relive this experience.

It's important to note that I was feeling pretty good after all this analysis. I felt that I had addressed my shortcomings and displacing the averages was going to take me to the elite level.

#5 Displace

For those of you not familiar with displaced moving averages, it's a means for moving the average before or after the price action.

You can offset the number of periods higher to give the stock a little more wiggle room.

Conversely, you can go negative on the offset to try and jump the trend.

I'm not going to drain this concept in this article, as the focus of this discussion is around simple moving averages.

The point is, I felt that using the averages as a predictive tool would further increase the accuracy of my signals.  This way I could jump into a trade before the breakout or exit a winner right before it fell off the cliff.

To illustrate this point, check out this chart example where I would use the same simple moving average duration, but I would displace one fo the averages to jump the trend.

Displaced Moving Average Sell Signal

Displaced Moving Average Sell Signal

The reality is that I would jump into trades that would never materialize or exit winners too soon before the real pop.

This, of course, left me feeling completely broken and lost. I don't say that lightly.

I mean the feeling of despair was so real. You feel like quitting, to be honest.

I think this feeling of utter disgust and wanting to never think about trading again is part of the journey to consistent profits.

Going back to my journey, at this point it was late fall, early winter and I was just done with moving averages. This is clearly reflected in my red unhappy face.

#6 More Indicators



This is the awful curse of technical analysis.

Technical indicators and systems lead to more indicators to try and crack the ever elusive stock market.

I too fell victim to this horrible symptom of pain from the markets.

This was by far my darkest period of the journey with moving averages.

Not in terms of losses, but just in feeling lost with my trading system and overall confidence.

I would try one system one day and then abandon it for the next hot system. This process went on for years as I kept searching for what would work consistently regardless of the market.

This included me trying every indicator from bollinger bands, macd, slow stochastics - you name it, I tried it.

If you get anything out of this article, do not make the same mistake I did with years of worthless analysis. You will make some traction, but it's a far better use of your time to zone in on yourself and how you are perceiving the market.

#7 - 20 Period Simple Moving Average

After many years of trading, I have landed on the 20-period simple moving average. At times I will fluctuate between the simple and exponential, but 20 is my number.

This is because I have progressed as a trader from not only a breakout trader, but also a pullback trader.

I use the 20-period moving average as a means to gauge market direction, but not as a trigger for buying or selling.

It all comes down to my ability to size up how a stock is trading in and around the average.

At times a stock will crack right through the average, but I don't panic that a sell-off is looming. I just wait and see how the stock performs at this level.

It's funny to think that I have essentially reverted back to exactly what I was looking at over 10 years ago - one average.

You may ask "Are you upset that it took you this long to come to this conclusion?"

Absolutely not. It wasn't all death and gloom along the way and the simple moving average is just one component of my trading toolkit.

In other words, mastering the simple moving average was not going to make or break me as a trader.

However, understanding how to properly use this technical indicator has positioned me to make consistent profits.

So How Do You Trade with the Simple Moving Average?

4 Key Takeaways

4 Key Takeaways

I'm hoping at this point in the article you are able to answer this question.

If you haven't already figured it out, the simple moving average is not an indicator you can use as a standalone trigger.

Now, that doesn't mean that the indicator can't be a great tool for monitoring the direction of a trend or helping you determine when the market is getting tired after an impulsive move.

Think of the SMA as a compass.  If you want detailed coordinates you will need other tools, but you at least have an idea of where you are headed.

I know for you the conceptual points are not enough, so let's get literal:

  1. Only use one simple moving average
  2. Do not make buy or sell signals based on the price closing above or below the simple moving average
  3. You should use the simple moving average, as the indicator is arguably the most popular technical analysis tool
  4. Focus on observing how the stock interacts with the simple moving average, as this is often a head fake tool for algorithms and more sophisticated traders

Additional Resources

  • Link to the book Moving Averages Simplified by Clif Droke. This is a great read with a ton of chart examples.
  • This is a great comparitive analysis performed by our friends over at TradeStation comparing simple, weighted and exponential moving averages.
  • Below is another video on trading with moving averages. It's a little dated, but covers a few crossover strategies.

Related Post

See How Tradingsim Works