Skip to main content

Moving Averages in Trading

 Moving Averages in Trading

Trading the financial markets often feels like trying to find clarity in chaos. Prices move up and down rapidly, creating noise that makes it difficult to recognize real trends. This is where technical indicators come in handy. Among them, the moving average (MA) is one of the most widely used and trusted tools.

Moving averages help traders smooth out price data, highlight the direction of the trend, and generate buy or sell signals. They act like a filter that reduces market “noise” and allows you to see the bigger picture.

In this blog, we’ll cover:

  • What a moving average is
  • Different types of moving averages
  • How traders use them in real-world scenarios
  • A detailed 10 and 20-period EMA trading strategy you can apply

What is a Moving Average?

A moving average is a statistical calculation that shows the average price of an asset over a chosen period of time. As each new price point is added, the average “moves” forward, hence the name moving average.

For example, if you calculate a 10-day simple moving average (SMA) for a stock, you add up the closing prices of the last 10 days and divide by 10. On the next day, the earliest data point drops off, and the latest day’s closing price is added, keeping the average updated.

The moving average line is then plotted on a chart, giving traders a smooth curve that represents the general direction of the price.

Why Traders Use Moving Averages

  • Identify trends: Helps confirm if the market is in an uptrend, downtrend, or sideways.
  • Support and resistance: Acts as a dynamic level where price often reacts.
  • Generate signals: Crossovers and slope changes give entry/exit opportunities.
  • Remove noise: Reduces random price fluctuations that mislead traders.

Types of Moving Averages

Moving averages come in several variations, each with its strengths and weaknesses. Let’s explore the most common ones.

1. Simple Moving Average (SMA)

  • Formula: SMA = (Sum of closing prices over a period) ÷ (Number of periods)
  • Example: A 20-day SMA takes the last 20 daily closing prices, sums them, and divides by 20.
  • Pros: Easy to calculate and smooth, making it less sensitive to sudden price spikes.
  • Cons: Lags behind price because it gives equal weight to all data points.

2. Exponential Moving Average (EMA)

  • Formula: EMA = [Price(t) × Multiplier] + [EMA(y) × (1 − Multiplier)] where Multiplier = 2 ÷ (n + 1)
  • Unlike SMA, EMA gives more weight to recent prices, making it react faster to market changes.
  • Pros: Responds quickly to price moves; better for short-term traders.
  • Cons: Can give false signals during choppy markets.

3. Weighted Moving Average (WMA)

  • Assigns weights to each data point, but instead of exponential decay, weights decrease in a linear fashion.
  • Example: In a 5-day WMA, the latest day might get weight 5, the previous day weight 4, and so on.
  • Pros: More responsive than SMA but smoother than EMA.
  • Cons: Still lags behind real-time price changes.

How Traders Use Moving Averages

Trend Direction
  • If price is above the MA, trend is bullish.
  • If price is below the MA, trend is bearish.
Crossovers
  • When a short-term MA crosses above a long-term MA → bullish signal.
  • When a short-term MA crosses below a long-term MA → bearish signal.
Dynamic Support/Resistance
  • Prices often bounce near moving averages like the 50-day or 200-day MA.
Confluence
  • Traders combine MAs with other indicators (RSI, MACD, Volume) for higher accuracy.

Example moving average trading strategy - 10/20 EMA Trading Strategy

The 10/20 EMA crossover strategy is one of the simplest yet highly effective trading methods. It is a trend-following strategy, which means it works best when the market is moving strongly in one direction (up or down).
This strategy uses:

  • A 10-period Exponential Moving Average (EMA) → fast moving average
  • A 20-period Exponential Moving Average (EMA) → slower moving average
The logic is simple:
  • When the short-term EMA (10) crosses above the longer-term EMA (20), momentum is shifting upward → buy signal.
  • When the short-term EMA (10) crosses below the longer-term EMA (20), momentum is shifting downward → sell signal.

Why the 10 and 20 EMA?

  • The 10 EMA reacts quickly to price changes.
  • The 20 EMA reacts more slowly, filtering out short-term noise.
  • When the fast EMA crosses the slow EMA, it indicates that momentum has shifted enough to potentially start a new trend.
Example - Netweb stock daily chart
The chart below shows how the 10 EMA (orange) and 20 EMA (blue) help identify trend direction and trading opportunities. Each arrow highlights a key signal generated by the strategy

Orange and Blue Arrows (Crossover & Pullback Signals):

  • The 10 EMA (orange) crossed above the 20 EMA (blue) → bullish crossover, OR
  • Price pulled back near the EMAs and then bounced up → continuation signal.

Trend Progressions

  • At the first arrow (left side), the 10 EMA crossed above the 20 EMA.
  • This was the initial buy signal, suggesting the start of an uptrend.
  • At the second arrow (middle), price briefly consolidated, and the EMAs almost touched.
  • The 10 EMA stayed above the 20 EMA → no bearish signal, just a healthy pullback.
  • This gave another entry/add-on opportunity.
  • At the third arrow (right side), price bounced sharply after testing the EMAs. This confirmed the trend continuation.

Current Situation (Rightmost part):

  • The stock is at ₹3,695, trending strongly upward.
  • The 10 EMA (₹3,350) is clearly above the 20 EMA (₹3,081).
  • Both EMAs are sloping upward, confirming strong bullish momentum.



Comments

Popular Posts

My Trading Journey

My Trading Journey  (2006–2025) Decade of Losses, Learning, and Growth By Jithesh Shetty – Software Engineer | Trader | Lifelong Learner Trading has never been just a hobby for me. It has been a journey of emotional growth, financial discipline, continuous learning, and above all, self-discovery. Here's how my journey unfolded over the past two decades. My trading journey began sometime in 2006–07. At the time, I didn’t have my own trading account, so I used to trade through my brother’s or a friend’s account. I was simply fascinated by the idea of buying and selling stocks, making quick profits, and being part of the financial world. Eventually, I opened my own trading account. But back then, I had no understanding of how the stock market really worked. I would take positions purely based on the tips, opinions, and suggestions of friends. I did not have a strategy, nor did I try to understand the fundamentals or technical of the companies I was investing in. Not surprisingly, this...

Chart Patterns

Chart Patterns Overview Chart patterns are visual formations created by the movement of prices on a chart. These patterns reflect how buyers and sellers behave in the market and are an essential tool for technical analysis. By studying how price moves, traders can identify potential trends, reversals, and continuation patterns — helping them make more informed trading decisions. Chart patterns are not magical tools that guarantee profits, but they are based on real market psychology. They help us understand how market participants react during different phases — whether they're cautious, optimistic, or fearful. Recognizing patterns early can give traders an edge by signaling when to enter or exit a trade. When I first started trading, chart patterns felt overwhelming — too many lines, shapes, and signals! But as I practiced identifying a few key patterns like the Cup and Handle or Flag, everything started to make sense. These patterns taught me how the market breathes — when tr...

Price and RSI Trendline Strategy

Price and RSI Trendline Strategy The Price and RSI trendline strategy is one of the most effective and easy-to-use methods for trading equity stocks. Many beginners rely solely on price charts to make trading decisions, but by adding the Relative Strength Index (RSI) and trendlines to your analysis, you can gain deeper insight into market strength and potential turning points. This approach helps you confirm trends, identify reversals, and catch breakouts before they become widely recognized by others. In this strategy, you draw trendlines not only on the price chart but also on the RSI indicator. Trendlines on price help you track support and resistance levels, while RSI trendlines show shifts in momentum. For example, if the price forms a downward trendline but the RSI breaks its trendline upward, it could signal that the selling pressure is weakening and a reversal might occur. Similarly, when both price and RSI trendlines break at the same time, it can provide a stronger confirm...