OPEN-SOURCE SCRIPT
Updated EMA 9, 21 & 50 Indicator with Floating Labels

🟢 EMA 9, 21 & 50 Indicator with Floating Labels
📘Overview
This indicator plots three exponential moving averages (EMAs) to visualize short-, medium-, and longer-term trend structure on any timeframe:
EMA 9 – Bright Green (short-term momentum)
EMA 21 – Bright Yellow (medium-term trend)
EMA 50 – Red (broader trend confirmation)
Each EMA has a floating label on the right edge of the chart, so line identities remain visible as new candles form.
🪶 Features
📈 How to Use
Trend Filter:
Price above 21 & 50 → bullish bias; look for long setups or pullbacks toward the 9/21.
Price below 21 & 50 → bearish bias; look for short setups or rallies into 9/21.
Momentum vs. Structure:
9 EMA = momentum guide for quick swings.
21 EMA = primary trend line for swing entries/exits.
50 EMA = confirmation of broader direction.
🔧 Tips
Analyze trend on Daily or 4H; fine-tune entries on 1H/15m near the 9 or 21 EMA.
Pair with volume or RSI/MACD for extra confirmation at EMA touches/crosses.
📘Overview
This indicator plots three exponential moving averages (EMAs) to visualize short-, medium-, and longer-term trend structure on any timeframe:
EMA 9 – Bright Green (short-term momentum)
EMA 21 – Bright Yellow (medium-term trend)
EMA 50 – Red (broader trend confirmation)
Each EMA has a floating label on the right edge of the chart, so line identities remain visible as new candles form.
🪶 Features
- Clear, fixed colors for easy recognition (Green 9 / Yellow 21 / Red 50)
- Floating labels that stay visible off the right edge
- Clean overlay compatible with any chart style
- Lightweight and fast to render
📈 How to Use
Trend Filter:
Price above 21 & 50 → bullish bias; look for long setups or pullbacks toward the 9/21.
Price below 21 & 50 → bearish bias; look for short setups or rallies into 9/21.
Momentum vs. Structure:
9 EMA = momentum guide for quick swings.
21 EMA = primary trend line for swing entries/exits.
50 EMA = confirmation of broader direction.
🔧 Tips
Analyze trend on Daily or 4H; fine-tune entries on 1H/15m near the 9 or 21 EMA.
Pair with volume or RSI/MACD for extra confirmation at EMA touches/crosses.
Release Notes
🟢 EMA 9, 21 & 50 Indicator with Floating Labels📘Overview
This indicator plots three exponential moving averages (EMAs) to visualize short-, medium-, and longer-term trend structure on any timeframe:
EMA 9 – Bright Green (short-term momentum)
EMA 21 – Bright Yellow (medium-term trend)
EMA 50 – Red (broader trend confirmation)
Each EMA has a floating label on the right edge of the chart, so line identities remain visible as new candles form.
🪶 Features
Clear, fixed colors for easy recognition (Green 9 / Yellow 21 / Red 50)
Floating labels that stay visible off the right edge
Clean overlay compatible with any chart style
Lightweight and fast to render
📈 How to Use
Trend Filter:
Price above 21 & 50 → bullish bias; look for long setups or pullbacks toward the 9/21.
Price below 21 & 50 → bearish bias; look for short setups or rallies into 9/21.
Momentum vs. Structure:
9 EMA = momentum guide for quick swings.
21 EMA = primary trend line for swing entries/exits.
50 EMA = confirmation of broader direction.
🔧 Tips
Analyze trend on Daily or 4H; fine-tune entries on 1H/15m near the 9 or 21 EMA.
Pair with volume or RSI/MACD for extra confirmation at EMA touches/crosses.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.