OPEN-SOURCE SCRIPT

200-Day & 50-Day Moving Averages

78
### **Description of the TradingView Script**

This **TradingView Pine Script** plots two key moving averages used in technical analysis:
- **200-day moving average** (light pink/purple, 60% transparent)
- **50-day moving average** (light yellow, 60% transparent)

The script enhances visualization by making the lines thinner (**linewidth = 1**) and applying **semi-transparent colors** to avoid overwhelming the chart.

#### **Features of the Script:**
✅ **Plots a 200-day simple moving average (SMA) in light pink/purple** with 60% transparency.
✅ **Plots a 50-day SMA in light yellow** with 60% transparency.
✅ **Displays "200" and "50" labels only on the rightmost end** of their respective lines to reduce clutter.
✅ **Identifies key crossover signals:**
- **Golden Cross (Green Dot):** When the **200-day MA crosses above** the 50-day MA (bullish signal).
- **Death Cross (Black Dot):** When the **50-day MA crosses below** the 200-day MA (bearish signal).

#### **How to Use the Script:**
1. Open **TradingView** and navigate to the **Pine Script Editor**.
2. Copy and paste the script.
3. Click **"Add to Chart"** to apply it.

This script is designed for **traders and analysts** who want a **clean and minimalistic visualization** of long-term and short-term trend crossovers while keeping the chart readable. 🚀

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.