
Exponential Moving Average Formula | EMA Calculation & Example (2025)
The Indian stock market is regulated, monitored, and structured to protect investors. But beneath this well-organized surface lies a risky and illegal practice that many are still unaware of — dabba-trading. This blog explores what is dabba trading, how it works, why it’s illegal, and what retail investors must know to protect themselves from falling into its trap. Learn Exponential Moving Average formula, EMA calculation steps, & real examples. Perfect for beginners and traders using EMA in technical analysis .
What Is an Exponential Moving Average (EMA)?
At its core, an exponential moving average (EMA) is a indicator that concentrates on recent price data, making its reaction time faster towards changes than the older simple moving average (SMA). It’s sometimes called a weighted moving average because it puts more emphasis on newer values, which are helpful in fast-moving markets.
The Core EMA Formula
The classic exponential moving average formula calculates current EMA like this:
EMA_today = (Price_today × K) + (EMA_yesterday × (1 – K))
Here, K is the smoothing factor, calculated as:
K = 2 ÷ (N + 1)
Where N is the number of days (e.g., 20 days). This formula ensures the latest price has a higher influence on today’s EMA.
Why EMA Reacts Faster than SMA
Unlike the simple moving average, which treats every data point equally, EMA focuses on the most recent prices, making the line more sensitive to sudden market moves . If one increases N, the EMA smooths out even more; if one decreases N, it tracks price more closely with better accuracy.
Step-by-Step Calculation with Example
Let’s break down the ema formula using real numbers:
- Start with an SMA
To get started, calculate a simple moving average for the first N data points. - Find the smoothing constant K
Example: For a 50-day EMA → K = 2 / (50 + 1) ≈ 0.0392
Apply the EMA formula
Suppose yesterday’s EMA was ₹2,125 and today’s closing price is ₹2,150:
EMA_today = (2,150 × 0.0392) + (2,125 × (1 – 0.0392))
≈ ₹2,148
but beware—the first EMA uses the initial SMA to start
Practical Applications of EMA
EMAs are more than math—they guide real decisions:
- Identify trends: Price above EMA gives an indication of a bullish trend; below suggests a bearish trend.
- Generate signals: Crossovers are trendy and popular—e.g., when a short-term EMA crosses a long-term EMA, it indicates buy or sell trends.
- Confirm momentum: In MACD, EMA lines (12-day and 26-day) help in forming momentum-based indicators.
Common Mistakes to Avoid
- Relying on a single EMA: Markets fluctuate due to volatily—using just a single EMA can create whipsaws in sideways movement in the markets..
- Ignoring multi-timeframe: An EMA effective on a daily chart might not work on an hourly one.
- Skipping validation: Testing different EMA lengths before committing is critical—what works in one market phase might fail in another.
Understanding the Exponential Moving Average with a Real-Life Trading Lens
When one is doing active trading or keeping a watch on the stock market carefully, its not very hard to get flabbergasted by the constant price fluctuations. That’s where the Exponential Moving Average (EMA) comes in as it breaks through the unnecessary noise.
Unlike the Simple Moving Average (SMA), which is spread in an even manner across different data points , the EMA places more importance towards recent price fluctuations. That small modification makes a massive difference for traders who want to remain vigilant for shifts in momentum.
Let’s walk through why that matters—with examples you’ll actually relate to:
Think of EMA Like a Car's GPS with Live Traffic Updates
Imagine driving with a GPS that only uses historical traffic data versus one that updates in real-time. The EMA is like that second GPS—it reacts faster to what’s happening now in the market. So if a stock suddenly gains momentum, the EMA will catch it sooner than the SMA.
Example: Catching a Trend Early with EMA Crossovers
Let’s say you’re analyzing stock charts on Zerodha. If one applies a 9-day EMA and a 21-day EMA, one may notice that when the 9-day line crosses above the 21-day line, the stock tends to move towards a bullish trend. This crossover is a signal used by both amateurs and seasoned traders to execute long trades.
EMA Helps Traders Stay Grounded
Markets are emotional. Prices go up and down for all sorts of reasons. The EMA doesn’t care about the news or hype. It simply reacts to the actual price data. For example, if a stock one constantly tracks spikes but the EMA doesn’t follow through, it might suggest that the move is not sustainable. That prevents impulsive entries.
Widely Used in All Market Conditions
Whether you’re a full-time trader or someone exploring options trading on platforms like Zerodha or Quanttrix, EMAs are available by default in charting tools. Many traders use EMAs not just for entries, but also to set stop-loss levels or exit when a trend weakens.
Not Foolproof, But Hugely Helpful
Let’s be honest—no indicator guarantees profits. But EMA is one of those unique rare indicators that works fine when used properly in a disciplined manner. Combining it with support/resistance zones, RSI indicator, or even candlestick confirmations, one can get a well-rounded trading setup.
Quick Summary of EMA vs SMA
Feature | SMA | EMA |
Weighting Style | Equal for all data points | More weight to recent data |
Lag Response | High (slower) | Lower (faster) |
Usage in Strategy | Trend confirmation | Timing entries/exits |
Sensitivity to Noise | Lower | Higher risk of whipsaws |
Conclusion:
Understanding the exponential moving average and its core formula is crucial for traders who want timely foresight into market trends. Whether one is tracing trend reversals or enhancing and improving other indicators, EMAs offers clarity, accuracy and speed.
In Zerodha and other platforms, EMAs are simple to deploy and tweak. You might even combine multiple EMAs for richer analysis. Just remember—choose periods that align with one’s strategy, and validate performance beforehand.
FAQ'S
What is exponential moving average formula?
It’s the weighted average calculation using the formula:
EMA_today = (Price_today × K) + (EMA_yesterday × (1 – K)), where K = 2 / (N + 1).
Why use EMA over SMA?
Because exponential moving average responds faster to recent price action, helping traders react more quickly to emerging trends.
How do I apply exponential moving average in Zerodha?
In Kite charts: Go to Studies → EMA, set your period (like 20), and apply to your chart. Kite handles the calculation using the ema formula.
How can I avoid falling into the dabba trap?
- Always trade through official platforms
- Never give money to anyone who says “no demat required”
- Report suspicious practices to SEBI’s whistleblower portal