OPEN-SOURCE SCRIPT
تم تحديثه Daily/Weekly EMAs on Lower Timeframes

This indicator allows traders to view Daily and Weekly EMAs (Exponential Moving Averages) directly on lower timeframes such as 1m, 5m, 15m, or 1h charts — providing a higher timeframe perspective without switching charts.
The script includes individual checkboxes for each EMA length — 5, 8, 9, 21, 50, and 200 — organized into two clear sections:
🟢 Daily EMAs
🔵 Weekly EMAs
You can selectively enable or disable any EMA to match your trading style and reduce chart clutter.
Each EMA is color-coded for clarity and consistency:
5 EMA: Green
8 EMA: Blue
9 EMA: Blue
21 EMA: Orange
50 EMA: Purple
200 EMA: Red
Weekly EMAs appear slightly transparent to distinguish them from daily ones.
This makes it easy to visualize higher timeframe trend direction, confluence zones, and dynamic support/resistance levels while trading intraday.
💡 Key Features
The script includes individual checkboxes for each EMA length — 5, 8, 9, 21, 50, and 200 — organized into two clear sections:
🟢 Daily EMAs
🔵 Weekly EMAs
You can selectively enable or disable any EMA to match your trading style and reduce chart clutter.
Each EMA is color-coded for clarity and consistency:
5 EMA: Green
8 EMA: Blue
9 EMA: Blue
21 EMA: Orange
50 EMA: Purple
200 EMA: Red
Weekly EMAs appear slightly transparent to distinguish them from daily ones.
This makes it easy to visualize higher timeframe trend direction, confluence zones, and dynamic support/resistance levels while trading intraday.
💡 Key Features
- View Daily and Weekly EMAs on smaller timeframes.
- Individual checkbox toggles for all 6 EMA lengths.
- Separate sections for Daily and Weekly EMAs.
- Color-coded lines for easy visual recognition.
- Works seamlessly on any symbol or timeframe below Daily.
ملاحظات الأخبار
This indicator lets you overlay Daily & Weekly Moving Averages (SMA or EMA) on lower timeframe charts (1m, 5m, 15m, 1h, etc.), giving you higher timeframe context without switching charts.- Choose SMA or EMA globally for all lines.
- Input custom lengths (5 values) with dedicated colors: Green, Blue, Orange, Purple, Red.
- Toggle visibility per line, organized in two groups: Daily and Weekly.
- Weekly lines draw with transparency to distinguish from Daily.
Ideal for visualizing trend confluence, dynamic support/resistance, and HTF direction while trading intraday.
ملاحظات الأخبار
Date: October 2025Version: 2.5
🚀 New Features
Descriptive Value Labels:
Added dynamic right-edge labels showing each MA’s name and value (e.g., “Daily EMA 8: 153.16”).
Labels automatically update in real time and move slightly above each MA line for better visibility.
Real-Time Accuracy:
Daily and weekly EMAs/SMA values now use live forming candle data, matching TradingView’s built-in indicators exactly.
Compact One-Line Layout:
All label.new() and plot() statements are refactored into single-line, clean syntax for better readability and performance.
Improved Visual Hierarchy:
Daily lines use solid colors; Weekly lines are semi-transparent for distinction.
Labels are color-matched and slightly larger (size=normal) for readability.
🛠 Fixes & Improvements
Fixed previous issue where daily EMAs appeared stepped or lagging (now shows correct intraday value).
Fixed label overlap and alignment — labels now render just above their respective lines.
Consolidated redundant function calls for efficiency.
Enhanced color consistency across all MA lengths (5, 8, 21, 50, 200).
⚙️ Behavior Summary
Works on any lower timeframe (1m, 5m, 15m, etc.).
Supports global toggle between EMA and SMA.
Auto-updating higher-timeframe values (daily & weekly).
Color-coded and labeled for quick trend visualization.
ملاحظات الأخبار
Fixes label positioningملاحظات الأخبار
Update titleنص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.