OPEN-SOURCE SCRIPT
Trinity Magic EMA Ribbon Pro

### **User Guide – Trinity Magic EMA Ribbon Pro + Candle Coloring**
#### **1. What Does This Indicator Do?**
It creates a **3-line EMA Ribbon** (High, HLC3, Low) and dynamically colors:
- The ribbon itself (bullish / bearish / neutral)
- The candles (body, border, and wick) based on the ribbon’s position relative to price.
#### **2. How to Read the Ribbon**
| Ribbon Position | Color | Meaning | Candle Color |
|--------------------------|----------------|----------------------------------|--------------|
| Ribbon **below** price | **Green** | Strong Bullish Trend | Green |
| Ribbon **above** price | **Red** | Strong Bearish Trend | Red |
| Price **inside** ribbon | **Orange/Yellow** | Consolidation / Weak Trend | Orange |
#### **3. Settings Explained**
**EMA Ribbon Settings**
- **EMA High / HLC3 / Low Period** → Default = **20** (you can change all three)
- **Ribbon Fill Transparency** → How see-through the background fill is (0 = solid, 100 = invisible)
- **Bull / Bear / Neutral Colors** → Colors for the ribbon lines and fill
- **Show EMA Lines** → Turn the 3 EMA lines on/off
**Candle Coloring Settings**
- **Color Candles Based on Ribbon** → Main on/off switch
- Bull / Bear / Neutral sections → Full control over **Body**, **Border**, and **Wick** colors
#### **4. How to Use It Effectively**
- **Trend Trading**: Look for green candles + ribbon below price (strong uptrend)
- **Mean Reversion**: Orange candles when price is inside the ribbon (range trading)
- **Reversals**: Watch for color changes (especially ribbon flipping from red to green or vice versa)
- Best used on **lower timeframes** with period 20, or higher timeframes with higher periods (e.g. 50–96)
#### **5. Tips**
- Turn off “Color Candles” if you prefer standard TradingView candles.
- You can hide the EMA lines and only use the fill + candle coloring for a cleaner chart.
- Works on any market: Stocks, Forex, Crypto, Futures.
#### **1. What Does This Indicator Do?**
It creates a **3-line EMA Ribbon** (High, HLC3, Low) and dynamically colors:
- The ribbon itself (bullish / bearish / neutral)
- The candles (body, border, and wick) based on the ribbon’s position relative to price.
#### **2. How to Read the Ribbon**
| Ribbon Position | Color | Meaning | Candle Color |
|--------------------------|----------------|----------------------------------|--------------|
| Ribbon **below** price | **Green** | Strong Bullish Trend | Green |
| Ribbon **above** price | **Red** | Strong Bearish Trend | Red |
| Price **inside** ribbon | **Orange/Yellow** | Consolidation / Weak Trend | Orange |
#### **3. Settings Explained**
**EMA Ribbon Settings**
- **EMA High / HLC3 / Low Period** → Default = **20** (you can change all three)
- **Ribbon Fill Transparency** → How see-through the background fill is (0 = solid, 100 = invisible)
- **Bull / Bear / Neutral Colors** → Colors for the ribbon lines and fill
- **Show EMA Lines** → Turn the 3 EMA lines on/off
**Candle Coloring Settings**
- **Color Candles Based on Ribbon** → Main on/off switch
- Bull / Bear / Neutral sections → Full control over **Body**, **Border**, and **Wick** colors
#### **4. How to Use It Effectively**
- **Trend Trading**: Look for green candles + ribbon below price (strong uptrend)
- **Mean Reversion**: Orange candles when price is inside the ribbon (range trading)
- **Reversals**: Watch for color changes (especially ribbon flipping from red to green or vice versa)
- Best used on **lower timeframes** with period 20, or higher timeframes with higher periods (e.g. 50–96)
#### **5. Tips**
- Turn off “Color Candles” if you prefer standard TradingView candles.
- You can hide the EMA lines and only use the fill + candle coloring for a cleaner chart.
- Works on any market: Stocks, Forex, Crypto, Futures.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.