OPEN-SOURCE SCRIPT

EMA & SMA Stack

296
A clean, lightweight trend-structure tool that overlays six moving averages on price so you can instantly see direction, momentum, and trend health.

Includes
  • 3 Exponential Moving Averages with adjustable lengths
  • 3 Simple Moving Averages with adjustable lengths
  • Thin, color-coded lines for fast visual clarity

Default layout: 8 EMA (red), 21 EMA (orange), 34 EMA (yellow), 50 SMA (green), 100 SMA (blue), 200 SMA (purple)

How to use
  • When faster EMAs are above slower EMAs and price is above all lines, trend strength is bullish.
  • When faster EMAs fall below slower SMAs and price is under all lines, trend strength is bearish.
  • Tight stacking = compression and potential breakout zones.
  • Wide separation = strong trend or exhaustion risk.

Why it helps
This removes guesswork. You get immediate confirmation of trend direction, support and resistance, and momentum shift on any timeframe.

Minimal clutter. Maximum signal.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.