Moving averages smooth price data so traders can judge trend direction, momentum, and possible support or resistance. The SMA gives each candle equal weight, while the EMA reacts faster by giving more weight to recent prices. Beginners should usually start with one or two averages — such as a 20 EMA for short-term trend and a 200 SMA for long-term context — then test signals with chart replay before using them in live markets. On TradingView, you can add these from the built-in "Moving Average" indicator and switch methods from a single dropdown.
Last verified: July 12, 2026, against TradingView's current moving-average documentation and plan comparison.
Where this page fits: Use the TradingView built-in indicators learning map when you need the full indicator curriculum. This page is the moving-average comparison hub for SMA, EMA, crossovers, and choosing a specialized average. The DEMA, KAMA, VWMA, SMMA, and ALMA pages remain focused tutorials rather than competing general guides.
Key Takeaways
- A moving average is a trend filter, not a standalone trading system.
- SMA is slower and smoother; EMA is faster and more sensitive.
- Crossovers work better in trending markets and fail often in sideways markets.
- The 20, 50, and 200-period averages are common starting points, not universal rules.
- Chart replay helps you test whether an MA setup works on the market and timeframe you actually trade.
Practice with ChartMini
Replay historical candles and train your trading decisions.
Moving Average Types Compared
Not every moving average is calculated the same way. The differences matter: they change how fast each line reacts, how much noise it filters, and which market condition it suits. The table below maps the main types you'll see on TradingView.
| Type | Typical role | Reacts how fast | Common use | Main risk | Related ChartMini article |
|---|---|---|---|---|---|
| SMA (Simple) | Long-term trend, major levels | Slow, smooth | 50/200-day trend filter, support/resistance | Lags during fast reversals | This article |
| EMA (Exponential) | Short-term momentum, pullbacks | Fast, responsive | 9/20/21 trend context | Whipsaws in choppy markets | This article |
| WMA (Weighted) | More recent-price emphasis with linear weights | Faster than SMA | Responsive trend smoothing | Can overreact to recent bars | This article |
| VWMA (Volume-Weighted) | Price trend viewed through volume participation | Depends on volume distribution | Compare with an equal-length SMA | Weak or distorted volume data can mislead | VWMA TradingView tutorial |
| SMMA (Smoothed) | Slow trend, reduced noise | Slower than EMA | Slower smoothing alternative to SMA | Still lags; rarely for entries | Smoothed Moving Average (SMMA) |
| DEMA (Double Exponential) | Faster signal reduction of lag | Faster than EMA | Reducing lag without extra noise | Can overreact in ranges | Double Exponential Moving Average (DEMA) |
| KAMA (Kaufman Adaptive) | Adapting to volatility | Adaptive | Trend following across volatility regimes | Complex; tune-effort sensitive | Kaufman's Adaptive Moving Average (KAMA) |
| ALMA (Arnaud Legoux) | Smoothness with low lag | Tunable, generally low lag | Smooth entries with reduced lag | Settings need careful tuning | Arnaud Legoux Moving Average (ALMA) |
Two notes on the table. First, TradingView provides built-in moving-average tools, but indicator names and available inputs differ by type; search the Indicators panel for the exact average rather than assuming every method is controlled by one dropdown. Second, each role is only a starting point — the useful choice depends on the timeframe, instrument, data quality, and how much lag or noise you can tolerate.
For a broader indicator learning path, see the TradingView built-in indicators learning map.
SMA vs EMA: Which Moving Average Should Beginners Use?
The choice between SMA and EMA is about responsiveness, not about one being "better."
SMA weights every candle in the period equally. That makes it slower and smoother, which is why it works well for long-term trend direction and major support/resistance — the 200-day SMA on a daily chart is watched by a huge number of traders, which is part of why price often reacts around it.
EMA weights recent candles more heavily. That makes it faster and more sensitive, so it tracks short-term momentum, pullbacks, and intraday shifts more closely. A 9 or 20 EMA will hug price; a 200 SMA will sit far away and act as a slow backdrop.
A practical starting point: use one fast EMA (such as 20) for short-term context and one slow SMA (such as 200) for the larger trend. That is usually enough to see whether the market is trending, pulling back, or going sideways, without stacking redundant lines that all measure the same thing.
The classic mistake is layering multiple averages of similar length — a 20 SMA, a 21 EMA, and a 25 WMA together. They overlap because they track nearly identical price windows, so they crowd the chart with duplicate signals rather than adding information.
Quick answer: SMA is better for long-term trend context because it is smoother and slower. EMA is better for short-term momentum because it reacts faster to recent prices. Beginners can start with one 20 EMA and one 200 SMA, then test the setup with chart replay before using it in live markets.
How to Add and Customize Moving Averages on TradingView
TradingView's design lets you add and modify moving averages in a few clicks. The workflow below uses the standard built-in Moving Average as the baseline. For DEMA, KAMA, VWMA, SMMA, or ALMA, search the Indicators panel for the exact indicator name and verify the inputs shown in its current settings dialog.
Step 1: Open the Indicators Menu
With your chart open, click the Indicators button in the top toolbar (or press / on your keyboard).
Step 2: Search and Select "Moving Average"
Type Moving Average. Under the Technicals section, click the official, built-in Moving Average. The indicator loads on your chart as a line overlay.
Step 3: Access Settings and Change the Method
Hover over the indicator name in the top-left legend, click the Settings (gear icon), and open the Inputs tab. Use the Method dropdown to choose your type, such as EMA or SMA.
Step 4: Configure Source and Length
In the same Inputs panel:
- Length: the number of bars to calculate (e.g.,
200for a long-term trend line). - Source: the price fed into the formula. Close is standard; High, Low, or hl2 are used in some advanced strategies.
Step 5: Format the Style
Click the Style tab to change color and thickness (for example, red for a 200 SMA, yellow for a 50 EMA). Click OK to save.
Why Moving Average Crossovers Fail in Sideways Markets
Crossovers are the most popular MA signal, and the one beginners lose the most money on. They work well in trends and mislead you in ranges.
Golden Cross and Death Cross (Macro Trend Filters)
The 50 SMA and 200 SMA on a daily chart produce the two most-watched crossover signals:
- Golden Cross: 50 SMA crosses above the 200 SMA — a long-term bullish signal.
- Death Cross: 50 SMA crosses below the 200 SMA — a long-term bearish signal.
Bullish (Golden Cross): 50 SMA ➔ Crosses ABOVE ➔ 200 SMA
Bearish (Death Cross): 50 SMA ➔ Crosses BELOW ➔ 200 SMA
EMA Pullback Strategy (Short-Term Momentum)
On shorter timeframes (e.g., 15-minute or 1-hour), traders often use a 9 EMA and 20 EMA. In a strong uptrend, wait for price to pull back into the space between the two EMAs (the "value zone") and look for a bullish rejection candle before entering long.
Why Crossovers Fail in Ranges
The same logic that makes crossovers useful in trends makes them costly in sideways markets:
- In a range, two averages cross back and forth repeatedly, generating a string of false signals.
- Each false cross costs slippage and spread if you trade it blindly.
- Crossovers are lagging — by definition they fire after the move has started, so late entries in a range get stopped out on the next wiggle.
The fix is not to abandon crossovers, but to filter them:
- Only take long crosses when price is above a higher-timeframe trend filter (e.g., the 200 SMA).
- Combine crossovers with market structure (higher highs/higher lows) and volume confirmation.
- Treat a crossover as one input, not a standalone buy/sell trigger.
A moving average crossover is a signal to check the chart, not to click buy.
Quick answer: Moving average crossovers (such as the Golden Cross and Death Cross) work best in trending markets. In sideways markets, two averages cross back and forth repeatedly and generate a string of false signals, so they should always be filtered with trend structure, volume, and a higher-timeframe context rather than traded blindly.
The 3 Critical Settings TradingView Beginners Get Wrong
1. Stacking Redundant Moving Averages
Adding multiple averages of similar length (a 20 SMA, a 21 EMA, and a 25 WMA) creates redundancy — they track nearly the same price window and overlap. Fix: Give each MA a distinct role, e.g., one fast EMA (20) for entry timing and one slow SMA (200) for trend filtering.
2. Timeframe–Length Disconnect
A moving average calculates over the bars on your current chart. A "200 EMA" on a 5-minute chart is 200 five-minute candles (less than a trading day), not the daily 200 institutional average. Fix: Use the Timeframe dropdown under Inputs to lock an indicator to a higher timeframe (e.g., Daily) regardless of the chart you're viewing.
3. Ignoring Transaction Drag and Spreads in Strategies
Manual backtests of crossovers often assume every cross is a profitable trade. In reality, sideways markets produce repeated cross-and-reverse moves that eat into returns through slippage and commissions. Fix: Combine crossover entries with a trend filter so you skip low-probability setups in flat markets.
How to Practice Moving Average Setups With Chart Replay
A simple way to test moving averages is to replay old charts candle by candle. In ChartMini, you can open the chart replay tool, hide future candles, mark the 20 EMA and 200 SMA zones manually, and pause before each candle to decide whether price is trending, pulling back, or moving sideways. This makes the moving average a training tool rather than a signal you follow blindly.
A short practice routine:
- Pick one market and one timeframe. Don't jump between instruments during a session.
- Add one fast EMA and one slow SMA. Keep the chart clean.
- Replay candle by candle and pause before each close. State out loud: trend, pullback, or range.
- Mark your would-be entry when a crossover or pullback fires, then advance the replay to see what happened.
- Note the result. Did the trend continue, or were you chopped in a range?
Replay practice won't make a moving average "work better" — it trains you to recognize the market condition where the setup has an edge and the one where it doesn't. ChartMini is best suited for lightweight chart replay practice; it is not a full broker simulator and does not model order routing, slippage, or fills.
A 20 EMA / 200 SMA Replay Drill You Can Run Today
If you want a concrete way to turn the ideas above into reps, run this 20-minute drill. The goal is not to "find the best settings" — it is to train your eye to separate trending periods from sideways ones, which is where most beginners lose money on moving averages.
Setup: open a historical chart in ChartMini replay, add a 20 EMA and a 200 SMA, hide future candles, and move candle by candle.
Before each candle closes, label the current state:
- Trend — price is making higher highs and higher lows (uptrend) or lower highs and lower lows (downtrend), and the 20 EMA is sloping in that direction.
- Pullback — price is retracing toward the 20 EMA inside an existing trend, not breaking the structure.
- Range — price is crossing the 20 EMA repeatedly within a tight band, and the 20 EMA and 200 SMA are mostly flat.
Practice rules to apply as you advance the replay:
- Only mark a practice entry when price is on the trend side of the 200 SMA and the 20 EMA is pointing in the trend direction.
- Skip every crossover that happens while both averages are flat — that is the false-signal zone.
- When price is extended far from the 20 EMA, wait for a pullback rather than chasing.
- Advance the replay 5–10 candles past each marked entry and note the result honestly.
What to look for when you review: most beginners find that their worst "entries" come from treating a flat moving average as a signal rather than as context. That single observation — use the MA as context, not as a trigger, when the market is not trending — is the whole point of the drill. Do enough reps and you stop needing the rule written down.
Frequently Asked Questions (FAQ)
What is a moving average in trading?
A moving average is the average of price over a rolling number of bars. It smooths out individual candles so you can see the underlying trend direction and potential support or resistance zones. Common types include SMA and EMA.
Is SMA or EMA better for beginners?
Neither is universally better. SMA is smoother and better for long-term trend context (e.g., the 200 SMA); EMA is faster and better for short-term momentum (e.g., the 20 EMA). Beginners usually need only one of each.
What moving average settings should I start with?
A common starting pair is a 20 EMA for short-term trend and a 200 SMA for long-term context, plus optionally a 50 SMA in between. The 9 EMA and 20 EMA are popular for short-term pullback entries. These are starting points, not optimal settings.
Do moving average crossovers work?
Crossovers work reasonably well in trending markets (the Golden Cross and Death Cross are the best-known examples). They fail often in sideways markets, where averages cross back and forth and produce repeated false signals. Use a trend filter and market structure to confirm them.
Can I use moving averages without TradingView?
Yes. Moving averages are a generic concept supported by almost every charting platform. If you want to practice applying them without a broker account, you can replay historical charts in ChartMini and mark MA zones manually.
How should I practice moving average setups?
Replay historical charts candle by candle, add one fast and one slow average, and decide before each candle whether the market is trending, pulling back, or ranging. This trains you to read context rather than follow crossover signals mechanically.
References and Resources
- Investopedia – Guide to Moving Averages and Technical Analysis.
- Financial Industry Regulatory Authority (FINRA) – Investor education and investment basics.
- TradingView Support – Moving Averages (what the built-in MA indicator measures and how it is used).
- TradingView Help Center – How to Add and Manage Indicators on Charts.
- TradingView – Plan Pricing and Indicator Limits (refer to current plan details for per-chart indicator limits).
- Interactive Brokers – Spotlight on Exponential Moving Average (EMA) settings.
- OANDA – Technical Analysis and Moving Average Trading Strategies.
Further Reading
- Technical Analysis of the Financial Markets by John J. Murphy – the industry-standard textbook on the math and application of moving averages.
- For specialized types, see the VWMA TradingView tutorial, Smoothed Moving Average (SMMA), Double Exponential Moving Average (DEMA), Kaufman's Adaptive Moving Average (KAMA), and Arnaud Legoux Moving Average (ALMA) tutorials.
Practice with ChartMini
Replay historical candles and train your trading decisions.