Multi-Timeframe EMAs with Cross Alerts (Up & Down)

Multi-Timeframe EMAs with Cross Alerts (Up & Down)
🛠️ Core Features:
✅ 1. Multi-Timeframe EMA Display
The script calculates and displays 6 different Exponential Moving Averages (EMAs).
Each EMA has:
Custom length input (e.g., 9, 21, etc.).
Custom timeframe selection (e.g., 1H, 4H, 1D).
Custom color for easy identification on the chart.
✅ 2. EMA Visualization
Each of the six EMAs is plotted on the chart using the selected color and thickness.
They respond dynamically to different timeframes (current or higher/lower).
✅ 3. Cross Detection Logic
The script can detect crossover and crossunder between EMA pairs:
EMA 1 and EMA 2
EMA 3 and EMA 4
EMA 5 and EMA 6
(Optional: can be extended to other combinations.)
✅ 4. Alert Toggles
Users can enable or disable alerts for each pair independently:
Alert: EMA 1 crosses EMA 2
Alert: EMA 3 crosses EMA 4
Alert: EMA 5 crosses EMA 6
(You added an additional option for EMA 4 vs EMA 6 later.)
✅ 5. Visual Alert Markers
The script uses alert() function to send alert messages when:
An EMA crosses above another (crossover)
An EMA crosses below another (crossunder)
Alerts include clear icons like 🔼 and 🔽 in the messages.
🔔 Use Case Scenarios
Swing traders: Identify longer-term cross signals on higher timeframes.
Scalpers: Use lower-timeframe EMAs with fast alert reactions.
Multi-timeframe analysis: Spot alignment between trend-following EMAs across different periods.
✅ Bonus
Fully customizable — great for adapting to your own strategy, whether it's trend confirmation, re-entry signals, or early reversals
📌 اسم المؤشر:
المتوسطات المتحركة الأسية (EMA) متعددة الفريمات مع تنبيهات تقاطع صاعدة وهابطة
🛠️ الميزات الأساسية:
✅ 1. دعم متعدد للفريمات الزمنية
يقوم السكربت بحساب وعرض 6 متوسطات متحركة أسية (EMA) مختلفة.
يمكن تخصيص كل EMA من حيث:
الطول (مثل: 9، 21...).
الفريم الزمني (مثل: الساعة، الأربع ساعات، اليومي...).
اللون، لتسهيل التمييز بين الخطوط على الشارت.
✅ 2. عرض المتوسطات على الرسم البياني
يتم رسم كل من المتوسطات الستة باستخدام اللون والتنسيق الذي تختاره.
المتوسطات تتفاعل تلقائيًا مع التغييرات في الفريم الزمني.
✅ 3. كشف التقاطعات
يمكن للسكربت كشف تقاطعات (صعودًا أو هبوطًا) بين أزواج المتوسطات التالية:
EMA 1 و EMA 2
EMA 3 و EMA 4
EMA 5 و EMA 6
(ويمكنك إضافة المزيد مثل EMA 4 مع EMA 6 حسب الحاجة)
✅ 4. التحكم في التنبيهات
يمكن للمستخدم تفعيل أو تعطيل التنبيهات لكل زوج من المتوسطات على حدة:
تنبيه عند تقاطع EMA 1 و EMA 2
تنبيه عند تقاطع EMA 3 و EMA 4
تنبيه عند تقاطع EMA 5 و EMA 6
(وأي أزواج إضافية يتم إضافتها لاحقًا)
✅ 5. تنبيهات مرئية برسائل واضحة
السكربت يرسل تنبيهات عبر وظيفة alert() عند حدوث:
تقاطع صاعد (EMA يتقاطع من الأسفل إلى الأعلى).
تقاطع هابط (EMA يتقاطع من الأعلى إلى الأسفل).
التنبيه يحتوي على رموز توضيحية مثل 🔼 و 🔽 ليسهل قراءته.
🎯 مناسب لـ:
المتداولين المتأرجحين (Swing Traders): لاكتشاف تقاطعات على الفريمات الكبرى.
المضاربين (Scalpers): باستخدام EMA سريعة على فريمات صغيرة مع تنبيهات فورية.
محللي الفريمات المتعددة: لتأكيد الاتجاه أو الانعكاس بناءً على تقاطع متوسطات من فريمات مختلفة.
✅ مزايا إضافية:
قابل للتخصيص بشكل كامل حسب استراتيجيتك.
مناسب لعدة أساليب: تأكيد الترند، إعادة الدخول، أو إشارات الانعكاس المبكر.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.