OPEN-SOURCE SCRIPT
EMAs & SMAs Suite (5+5) + Cluster Alert

What this script does
This indicator combines 5 Exponential Moving Averages (EMAs) and 5 Simple Moving Averages (SMAs) into a single, clean overlay.
Each moving average can be individually configured with its own visibility, length, color, line width, and visual style (Line / Step / Dots).
An optional value label can display the current values of all enabled EMAs and SMAs on the last bar.
Key feature — Cluster Alert (noise-reduced)
Beyond plotting moving averages, the script includes a single-trigger cluster alert designed to reduce alert spam.
The logic monitors the behavior of SMA(10) relative to a short-term EMA cluster:
Bullish signal: when SMA(10) enters above both EMA(9) and EMA(21)
Bearish signal: when SMA(10) enters below both EMA(9) and EMA(21)
The alert is triggered only on the first bar that enters the new state, not on every candle that remains above or below the cluster.
This makes it suitable for identifying momentum resumption, trend continuation, or early weakness, without repetitive signals.
How to use
Enable or disable the EMAs and SMAs you want to display.
Adjust periods, colors, widths, and styles according to your chart preferences.
(Optional) Enable “Confirm signals only on bar close” to avoid intrabar alerts.
Create an alert in TradingView using “Any alert() function call” to receive detailed messages.
(Optional) Enable “Show signal markers on chart” to visualize Bull/Bear entries.
Visual styles note
The available styles (Line / Step / Dots) reflect the actual rendering modes supported by plot() in Pine Script and are not dashed lines.
Intended use
This script is designed as a visual and alerting tool to support trend and momentum analysis.
It does not replace risk management or a complete trading plan.
Disclaimer
This script does not provide investment advice.
All trading decisions and risk management remain the responsibility of the user.
This indicator combines 5 Exponential Moving Averages (EMAs) and 5 Simple Moving Averages (SMAs) into a single, clean overlay.
Each moving average can be individually configured with its own visibility, length, color, line width, and visual style (Line / Step / Dots).
An optional value label can display the current values of all enabled EMAs and SMAs on the last bar.
Key feature — Cluster Alert (noise-reduced)
Beyond plotting moving averages, the script includes a single-trigger cluster alert designed to reduce alert spam.
The logic monitors the behavior of SMA(10) relative to a short-term EMA cluster:
Bullish signal: when SMA(10) enters above both EMA(9) and EMA(21)
Bearish signal: when SMA(10) enters below both EMA(9) and EMA(21)
The alert is triggered only on the first bar that enters the new state, not on every candle that remains above or below the cluster.
This makes it suitable for identifying momentum resumption, trend continuation, or early weakness, without repetitive signals.
How to use
Enable or disable the EMAs and SMAs you want to display.
Adjust periods, colors, widths, and styles according to your chart preferences.
(Optional) Enable “Confirm signals only on bar close” to avoid intrabar alerts.
Create an alert in TradingView using “Any alert() function call” to receive detailed messages.
(Optional) Enable “Show signal markers on chart” to visualize Bull/Bear entries.
Visual styles note
The available styles (Line / Step / Dots) reflect the actual rendering modes supported by plot() in Pine Script and are not dashed lines.
Intended use
This script is designed as a visual and alerting tool to support trend and momentum analysis.
It does not replace risk management or a complete trading plan.
Disclaimer
This script does not provide investment advice.
All trading decisions and risk management remain the responsibility of the user.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.