OPEN-SOURCE SCRIPT
EMA 9/20/50/100/200

This script plots the five most commonly used Exponential Moving Averages (EMAs): 9, 20, 50, 100, and 200. These EMAs help traders quickly identify short-term momentum, medium-term trends, and long-term market direction.
It is useful for:
Trend identification
Momentum confirmation
Pullback entries
Reversal detection
Multi-timeframe confluence trading
What’s Included
EMA 9 → short-term momentum
EMA 20 → near-term trend guide
EMA 50 → medium-term trend
EMA 100 → broad trend structure
EMA 200 → long-term direction
Each EMA is color-coded for clarity, making it easy to read and visually track trend shifts.
How to Use
When shorter EMAs cross above longer EMAs → bullish trend strengthening
When shorter EMAs cross below longer EMAs → bearish trend strengthening
Wide spacing between EMAs indicates a strong trend
Compression or clustering often signals potential reversals or breakout conditions
This indicator is simple, clean, and effective for all timeframes and asset classes.
It is useful for:
Trend identification
Momentum confirmation
Pullback entries
Reversal detection
Multi-timeframe confluence trading
What’s Included
EMA 9 → short-term momentum
EMA 20 → near-term trend guide
EMA 50 → medium-term trend
EMA 100 → broad trend structure
EMA 200 → long-term direction
Each EMA is color-coded for clarity, making it easy to read and visually track trend shifts.
How to Use
When shorter EMAs cross above longer EMAs → bullish trend strengthening
When shorter EMAs cross below longer EMAs → bearish trend strengthening
Wide spacing between EMAs indicates a strong trend
Compression or clustering often signals potential reversals or breakout conditions
This indicator is simple, clean, and effective for all timeframes and asset classes.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.