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 how a few crossover strategies. 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
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 short of an SMA will constantly give you signals. The best use of a 5-SMA is as a trade trigger in conjunction with a longer SMA period.
10-SMA - popular with the short-term traders. Great swing traders and day traders.
20-SMA - the last stop on the bus for short-term traders. Beyond 20-SMA you are basically looking at primary trends.
50-SMA - use the trader to gauge mid-term trends.
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.
Basic Rules for Trading with the SMA
Most traders will tell you to trade simple moving average crossovers of and the profits will fall from the heavens. Well, unfortunately this is not accurate. Often time's 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 positions. Below are a few ways to make money trading the SMA.
Going with the Primary Trend
- Look for stocks that are breaking out up or down strongly
- Apply the following SMAs 5,10,20,40,200 to see which setting is containing price the best
- 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
- Enter the trade on the next bar
Fade the Primary Trend Using Two Simple Moving Averages
- Locate stocks that are breaking out up or down strongly
- Select two simple moving averages to apply to the chart (ex. 5 and 10)
- Make sure the price has not been touching the 5 SMA or 10 SMA excessively in the last 10 bars
- Wait for the price to close above or below both moving averages in the counter direction of the primary trend on the same bar
- 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 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.
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.
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 to 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.
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.
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 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) its 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.
You have to be very careful with counter approaches. If you are on the wrong side of the trade, you and others with your position will be the fuel for the next leg up. Let's fast forward a few hours on the chart.
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 and guess what happened? You got it, the gap filled.
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 for 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 maybe 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
Early on in my trading career and when I say early I mean the first few months, I had the bright of idea of using a moving average strategy to bring me new found wealth. I settled on the 5 and 10 period SMAs and simply bought as the 5 crossed above the 10 and sold short when the 5 crossed below the 10. I thought I was really advanced when I decided to not just use this system blindly, but to run this analysis on stocks that had the best results. As you can imagine over the long haul I began to lose money. I am getting off topic, I think I already made it clear I'm not a fan of moving average crossovers. So, let's talk through using two simple averages. The first thing to know is you want to pick two moving averages the 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 Apple 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
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.
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 for making money day trading the markets.
Video of a Simple Moving Average Crossover Strategy
The below video shows an example of a simple moving average crossover strategy. While this trade would have worked in your favor, please remember this is not always the case.
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 if the SMA as a very basic compass. If you want detailed coordinates you will need other tools, but you at least have an idea of where you are headed.