Exponential Moving Average Formula

Exponential Moving Average Formula Explained

The exponential moving average formula tells you the trend of a stock. Investopedia defines an exponential moving average (EMA) as a moving average similar to a simple moving average, except that more weight is given to the latest data. EMAs are great for intraday trading, swing trading, or investing.

Exponential moving average (EMA) lines are great on the 1-minute and 5-minute chart for day trading but can also be useful when swing trading. The 9 and 20 EMA’s are a great combination to help give trading signals for entries and exits. The 13 EMA can also be used; it can be used in conjunction with the 9 and 20. 

If the 9 ema is over the 20, the price is bullish. If the 20 is over the 9, the price is bearish. When the 9 and 20 are close together, and it’s difficult to differentiate them, the stock is indecisive. Pay attention to ema crossovers, which signify potential reversal setups.

These indicators are added to your chart for information on trends, support, and resistance. The EMAs are used with other types of technical analysis to give you a better picture of what a stock has the potential to do.

Exponential Moving Average Formula Basics

They also are great for finding price reversals and whether the stock will be bullish or bearish. The slant of the EMAs shows if a stock is in an upward or downward trend. Knowing the stock trend will help determine if it is time to enter or exit a trade.

Never want to buy when the stock is indecisive because it can go either way. Always look for confirmation of the trade.

Exponential Moving Average Formula

This is an example of what exponential moving average lines look like in the ThinkorSwim platform. You’ll also see that I have simple moving average lines and vwap. This chart has the 9 ema, 20 ema, 50 sma, and 200 sma.

Trade Ideas Logo TrendSpider Premium Partner Benzinga
DESCRIPTION Trade Ideas provides powerful tools like real-time market scanning, AI-driven trade signals, customizable alerts, advanced charting capabilities, and time-saving data visualization TrendSpider is the most robust all-in-one trading platform on the market today. Uncover strategies, pinpoint opportunities, analyze assets, and time trades like never before Benzinga allows traders to profit with actionable stock news, trading signals and alerts, A streaming platform with all the information you need to invest smarter today

Day Trading

The exponential moving average formula is one of the best indicators for day trading. When day trading and seeing the price moving quickly, watching how it interacts with the 9 EMA can help gauge when to get in and out with a profit.

When in our trade room, members often hear someone saying, “to watch the 9 EMA.”  Ideally, enter a trade when the price is as close to the 9 EMA as possible because the risk is low the closer you buy to the 9 EMA. Then you ride it up. If it breaks below the 9 EMA, you may want to consider an exit strategy. This is where the saying “ride the 9” comes from.

The 5 minutes can help with finding an exit as well. If the price is going between the 9 and 20 on the 1 minute but staying above the nine on the 5 minute, it’s still in a bullish trend. We always day trade with 1-minute and 5-minute charts open. VWAP is very complimentary to EMAs and a useful indicator.

Swing Trading

The exponential moving average formula is great for day trading but can also be useful when swing trading. Swing trading usually means holding a stock for 3-5 days. The EMA trading strategy on the daily chart can help determine whether to take the trade for that period.

The EMA crossovers play an important role in this, along with the RSI and MACD. If the EMAs are far away from each other daily and the RSI shows a stock is oversold, then being extra vigilant about what the EMAs are doing can be the best choice.

If the EMAs are moving in a direction that shows a crossover is coming, waiting to get in might be smart. Sometimes, they pinch but do not cross and then go back up. This could result in a loss if shorting or trading Puts.

Using the same EMA strategy as day trading to get in and out of a stock is also good for swing trading. Get into the trade when the price is as close to the 9 EMA. If the trading action is choppy, wait till the setup provides a good signal to enter.

Exponential Moving Average Formula Example

Exponential Moving Average Formula

The chart above shows a simple bullish and bearish signal reversal using the 9 and 20 emas. The bullish crossover created a rising wedge pattern. It started as a bull flag breakout. The bearish crossover created a falling wedge pattern. 


EMAs will push the price up or down; watching them will tell whether it is time to enter or not and should wait. If the candlesticks are above the 9 and pushing up, try to stay in and follow your game plan. Sometimes, the best trade is no trade at all. Always wait for a setup that confirms the game plan. 

If the candlesticks are breaking below the 9, watch what the 20ema decides to do. If it begins to cross and a candle sticks below it, it might be a sign to exit or short the stock and ride the pushdown.

Day Trading Course Options Trading Course Futures Trading Course
DESCRIPTION Learn how to read penny stock charts, premarket preparation, target buy and sell zones, scan for stocks to trade, and get ready for live day trading action
Learn how to buy and sell options, assignment options, implement vertical spreads, and the most popular strategies, and prepare for live options trading How to read futures charts, margin requirements, learn the COT report, indicators, and the most popular trading strategies, and prepare for live futures trading

Final Thoughts

The exponential moving average formula is a great technical indicator. Trading can be emotional, especially when seeing the profit moving up and down. These tools and following technical analysis give the trader a better chance of success.

Technical analysis keeps things in perspective, and the EMAs are a great way to see the trends quickly and make trading decisions. Trading without EMA’s or technical analysis is not trading; it is gambling.

Frequently Asked Questions

The formula for the moving average line depends on the specific period. It's calculated by adding up all the data points during the period and dividing it by the sum of the time periods.

The exponential moving average period (EMA) gives more weight to the recent price changes in a stock. The 9 EMA, 20 EMA, or the 13 EMA are the most popular EMA lines.

The EMA is used most effectively when the price rides above when bullish and below when it's bearish. Crossovers show potential short-term reversals.

The 5 EMA trading is a way to catch big short-term moves in a stock. It's used to calculate the 5-day exponential moving average line. It's a short term line indicator.

The exponential moving average gives more weight to recent prices in a stock. The simple moving average assigns an equal weight to pricing.

Related Articles


If you’ve looked for trading education elsewhere then you’ll notice that it can be very costly.

We are opposed to charging ridiculous amounts to access experience and quality information. 

That being said, our website is a great resource for traders or investors of all levels to learn about day trading stocks, futures, and options. Swing trading too! 

On our site, you will find thousands of dollars worth of free online trading courses, tutorials, and reviews.

We put all of the tools available to traders to the test and give you first-hand experience in stock trading you won’t find elsewhere.

Our content is packed with the essential knowledge that’s needed to help you to become a successful trader.

It’s important to treat day trading stocks, options, futures, and swing trading like you would with getting a professional degree, a new trade, or starting any new career.

Invest the proper time into your Trading Education and don’t try to run before you learn to crawl. Trading stocks is not a get-rich-quick scheme. It’s not gambling either, though there are people who treat it this way. Don’t be that person! 


The Bullish Bears team focuses on keeping things as simple as possible in our online trading courses and chat rooms. We provide our members with courses of all different trading levels and topics.

If you’re a beginner, intermediate level, or looking for expert trading knowledge…we’ve got you covered. 

We have a basic stock trading course, swing trading course, 2 day trading courses, 2 options courses, 2 candlesticks courses, and broker courses to help you get started. Free.

Just choose the course level that you’re most interested in and get started on the right path now. Become a leader, not a follower. When you’re ready you can join our chat rooms and access our Next Level training library. No rush. We’re here to help.

Click Here to take our free courses.