Description for EMA Label & Cross Indicator (Pelangi Theme) This indicator plots 4 EMA lines (200, 100, 50, and 20 periods) on the chart with dynamic labels that follow each EMA line. The labels update in real-time to reflect their relative position on the chart and provide useful insights based on market conditions.
EMA 20 (Blue): Displays "Di langit yang biru 🎵" (translated: "In the blue sky 🎵") if it's at the top. EMA 50 (Green): Displays "Hijau" ("Green"). EMA 100 (Yellow): Displays "Kuning" ("Yellow"). EMA 200 (Red): Displays "Merah" ("Red"). Crossover Detection The indicator detects and marks crossover and crossunder points between the EMA lines with colored circles:
Red Circle: EMA 200 crossing with EMA 100. Yellow Circle: EMA 200 crossing with EMA 50. Green Circle: EMA 200 crossing with EMA 20. Blue Circle: EMA 100 crossing with EMA 50. Purple & Orange Circles: Custom colors for other crossovers. 🎯 Usage: This indicator helps traders identify EMA crossovers and track the relative position of EMAs in real-time. The dynamic labels make it easy to visualize when the market is in a bullish or bearish trend.
The label text changes based on the order of the EMAs:
If EMA 20 > EMA 50 > EMA 100 > EMA 200, it indicates a strong bullish trend, and the labels will change to a colorful theme. 🎨 Theme: The indicator follows a "Pelangi" (Rainbow) theme, inspired by the song:
"Merah, Kuning, Hijau, di langit yang biru" ("Red, Yellow, Green, in the blue sky").
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
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.