PROTECTED SOURCE SCRIPT

سحابة المتوسطات

45
أفضل استخدام له مع فريم اكبر من فريم الشارت مثلاً الربع ساعة معاه فريم الساعة
الثلاث دقائق معاها الربع ساعة و هاكذا ربط الفريمات

المؤشر يرسم 3 متوسطات متحركة (يمكن اختيار نوعها: SMA/EMA/WMA/VWMA/HMA/RMA) ويُنشئ سحابتين بين هذه المتوسطات لإظهار الاتجاه والزخم بصريًا، مع منطق تلوين ذكي يميز حالات الترتيب “الطبيعي” والشواذ بين المتوسطات.

أهم الميزات:

MTF سلس بدون درج: إذا اخترت فريم أعلى، يستخدم المؤشر توليفًا تدريجيًا (LERP) بين قيمة الفريم الأعلى السابقة والحالية اعتمادًا على تقدم الوقت داخل شمعة الفريم الأعلى، ثم يُطبّق تنعيم EMA إضافي (softLen) لإزالة “الدرج”.

سحابتان ديناميكيتان:

السحابة الأولى (1↔3): بين أعلى وأدنى قيم المتوسطات الثلاثة. لونها “فاتح” افتراضيًا، وينعكس للون “غامق” عند حالات الشذوذ.

السحابة الثانية (اختياريًا 2↔3 أو 1↔2): بلون “غامق” افتراضيًا، وتنعكس ألوانها عند الشذوذ. توجد آلية منع وميض عند تغيير الزوج داخل الشمعة.

منطق الاتجاه والتلوين: يحدد حالات الترتيب (1>2>3 صعود رسمي، 1<2<3 هبوط رسمي) ويكشف “الشواذ” (مثل 1-3-2 أو 2-3-1) لتبديل درجات الألوان بين الفاتح/الغامق.

تحكمات مرئية: اختيار نوع/فريم المتوسطات، أطوال كل MA، ألوان وشفافية السحب، عرض الخطوط، وإظهار ليبلات على آخر شمعة بقيم المتوسطات مع حجم خط وخلفية قابلة للتخصيص.

تنظيف تلقائي لليبلات: إنشاء/تحريك عند آخر شمعة وحذفها عند الإخفاء لضمان أداء بصري نظيف.

طريقة الاستخدام السريعة:

اختر نوع المتوسط والفريم (اتركه فارغًا لاستخدام فريم الشارت).

حدّد أطوال وألوان المتوسطات الثلاثة.

اختر وضع السحب (الأولى/الثانية/كلتاهما) وحدد زوج السحابة الثانية.

فعّل الليبلات إن رغبت لمتابعة قيم المتوسطات على آخر شمعة.

English (Concise)

What it does:
This indicator plots three moving averages (type selectable: SMA/EMA/WMA/VWMA/HMA/RMA) and builds two clouds between them to visualize trend and momentum. It uses smart coloring to distinguish “normal” MA ordering vs. anomalies.

Key features:

Smooth MTF (no stepping): When a higher timeframe is selected, it linearly interpolates (LERP) between the previous and current HTF values based on intra-bar time position, then applies an extra EMA smoothing (softLen) to further reduce stair-stepping.

Two dynamic clouds:

Cloud 1 (MA1↔MA3): Spans the max/min of the three MAs. Uses a “light” palette by default, flips to “dark” on anomaly cases.

Cloud 2 (configurable pair: MA2↔MA3 or MA1↔MA2): Uses a “dark” palette by default, flips to “light” on anomalies. Includes anti-flicker logic when changing the pair intra-bar.

Trend & coloring logic: Detects ordered states (1>2>3 = bullish, 1<2<3 = bearish) and anomalies (e.g., 1-3-2 or 2-3-1) to swap cloud shades accordingly.

Visual controls: Choose MA type/timeframe, individual lengths and colors, cloud colors/transparencies, line width, and optional labels on the last bar showing MA values with customizable size/background.

Clean label handling: Creates/moves labels only on the last bar and deletes them when hidden, keeping the chart tidy.

Quick start:

Select MA type and timeframe (leave empty to use chart TF).

Set lengths/colors for the three MAs.

Pick the cloud mode (first/second/both) and the pair for Cloud 2.

Enable labels to display the latest MA values if desired.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.