OPEN-SOURCE SCRIPT

Uptrend Rainbow Song EMA ver.1 🎵

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.

🚩 Key Features:
Dynamic EMA Labels
The labels display the names of each EMA (e.g., "EMA 200") and will change text dynamically if the EMAs are in a specific bullish order:

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").
Exponential Moving Average (EMA)Support and ResistanceTrend Analysis

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal