OPEN-SOURCE SCRIPT
كلاستر

Detailed Description – Fibonacci Cluster Zones + OB + FVG (AR34)
This script is an advanced multi-layer confluence system developed under the AR34 Trading Framework, designed to identify high-accuracy reversal zones, liquidity imbalances, institutional footprints, and trend direction using a unified analytic engine.
It combines Fibonacci mathematics, Smart Money Concepts, market structure, and smart trend signals to produce precise, reliable trading zones.
⸻
🔶 1 — Fibonacci Retracement Zones + Custom Smart Levels
The script calculates the highest and lowest prices over a selected lookback period to generate key Fibonacci retracement levels:
• 0.236
• 0.382
• 0.500
• 0.618
• 0.786
• 1.000
You can also add up to three custom Fibonacci levels (0.66, 0.707, 0.88 or any value you want).
✔ Each level is drawn as a horizontal line
✔ Optional label display for every level
✔ Color and activation fully customizable
These levels help identify pullback zones and potential turning points.
⸻
🔶 2 — True Fibonacci Cluster Detection
The script automatically identifies Cluster Zones, which occur when:
1. A Fibonacci level
2. An Order Block
3. A Fair Value Gap
all overlap in the same price range.
When all three conditions align, the script prints a CLUSTER marker in yellow.
These zones represent:
• High-probability reversal areas
• Strong institutional footprints
• Highly reactive price levels
⸻
🔶 3 — Automatic Order Block (OB) Detection
The indicator detects Order Blocks based on structural candle behavior:
• Bearish candle → followed by bullish
• Price interacts with a Fibonacci level
• Area aligns with institutional order flow
When detected, the OB is marked for easy visualization.
⸻
🔶 4 — Fair Value Gap (FVG) Mapping
The script scans for liquidity imbalances using the classic FVG logic:
• low[1] > high[3]
When an FVG exists, it draws a green liquidity box.
This highlights:
• Gaps left by institutional moves
• High-value return zones
• Efficient price retracement levels
⸻
🔶 5 — Fibonacci Extension Projections
The script calculates extension targets using:
• 1.272
• 1.618
• 2.000
These are drawn as dashed teal lines and help forecast:
• Breakout continuation targets
• Wave extension objectives
• Take-profit areas
⸻
🔶 6 — Smart Trend Signal (EMA-200 Engine)
Trend direction is determined using the EMA 200:
• Price above EMA → uptrend
• Price below EMA → downtrend
A green or red signal icon appears only when the trend flips, reducing noise and improving clarity.
This helps detect:
• Trend shifts early
• Cleaner entries and exits
• Trend-based filtering
⸻
🔶 7 — Four-EMA Multi-Trend System
The indicator includes optional visualization of four moving averages:
• EMA 20 → Short-term
• EMA 50 → Medium-term
• EMA 100 → Long-term
• EMA 200 → Major trend
All are fully customizable (length + color + visibility).
⸻
🔶 8 — Dynamic Negative Fibonacci Levels (Green Only)
When enabled, the script calculates deep retracement zones using:
• –0.23
• –0.75
• –1.20
These negative Fibonacci levels are drawn in green and help identify:
• Deep liquidity capture points
• Hidden structural supports
• Potential reversal bottoms
⸻
🔶 9 — Complete User Control
Users maintain full control over:
✔ Enabling/disabling OB detection
✔ Enabling/disabling FVG detection
✔ Activating custom Fibonacci levels
✔ Showing or hiding labels
✔ Selecting timeframe for Fib calculations
✔ Adjusting moving average parameters
✔ Activating dynamic Fibonacci
The script is designed to be flexible, scalable, and suitable for any trading style.
⸻
🎯 Summary
This indicator is a powerful all-in-one analytical system that merges:
✔ Fibonacci Mathematics
✔ Smart Money Concepts (OB + FVG)
✔ Trend-based filtering
✔ Institutional cluster detection
✔ Dynamic extensions + retracements
✔ Multi-EMA trend mapping
شرح السكربت بالتفصيل – Fibonacci Cluster Zones + OB + FVG (AR34)
هذا السكربت هو نظام تحليل احترافي متكامل من تطوير AR34 Framework يجمع بين أقوى أدوات التداول الحديثة في مؤشر واحد، ويهدف إلى كشف مناطق الانعكاس القوية، والتجميع الذكي، والاتجاه العام، باستخدام مزيج علمي من فيبوناتشي + السيولة + الاتجاه.
يعمل هذا المؤشر بأسلوب Confluence Trading بحيث يدمج عدة مدارس مختلفة في طبقة واحدة لتحديد مناطق الانعكاس والارتداد والاختراق بدقة عالية.
⸻
🔶 1 — مناطق فيبوناتشي (Retracement) + الكلاستر الذكي
يقوم المؤشر بحساب أعلى وأدنى سعر خلال عدد محدد من الشموع (Retracement Length) ثم يرسم مستويات فيبوناتشي الكلاسيكية:
• 0.236
• 0.382
• 0.500
• 0.618
• 0.786
• 1.000
مع إمكانية إضافة 3 مستويات خاصة من اختيارك (0.66 – 0.707 – 0.88 وغيرها).
✔️ كل مستوى يتم رسمه بخط مستقل
✔️ يظهر بجانبه رقم المستوى إذا تم تفعيل خيار Show Fib Labels
✔️ يمكن تغيير لونه، قيمته، وتفعيله حسب رغبتك
⸻
🔶 2 — كاشف الكلاستر الحقيقي (Cluster Detection)
الكلاستر يُعتبر أقوى مناطق الارتداد في التحليل الفني.
السكربت يحدد الكلاستر عندما تتداخل 3 عناصر مع مستوى فيبوناتشي:
1. مستوى فيبوناتشي مهم
2. Order Block
3. Fair Value Gap
إذا اجتمعت الثلاثة في نفس المنطقة، يتم رسمها باللون الأصفر وتظهر كلمة CLUSTER.
هذا يعطيك:
• أقوى منطقة انعكاس
• أعلى دقة في تحديد نقاط الدخول
• مناطق ذات سيولة مرتفعة
⸻
🔶 3 — دمج Order Blocks تلقائياً
يكتشف المؤشر الـ OB الحقيقي باستخدام شروط حركة الشموع:
• bearish candle → bullish candle
• السعر لمس مستوى فيبوناتشي
• منطقة محتملة لتجميع المؤسسات
إذا تحققت الشروط يظهر OB باللون الأحمر.
⸻
🔶 4 — دمج Fair Value Gaps (FVG)
يكتشف الفجوات السعرية بين الشمعتين الأولى والثالثة:
• low[1] > high[3]
ويقوم برسم بوكس أخضر حول الفجوة (FVG Zone).
يساعدك على معرفة:
• مناطق اختلال السيولة
• أهداف السعر القادمة
• مناطق “العودة” المحتملة
⸻
🔶 5 — امتدادات فيبوناتشي (Fibonacci Extensions)
يقوم بحساب الامتدادات من مستويات:
• 1.272
• 1.618
• 2.0
ويظهرها بخطوط متقطعة (Teal Color).
هذه المستويات مهمة لتوقع:
• أهداف اختراق
• مناطق TP
• امتداد موجات السعر
⸻
🔶 6 — إشارة الاتجاه الذكية (Smart Trend Engine – EMA200)
يعتمد على EMA 200 لتحديد الاتجاه العام:
• إذا السعر فوق EMA200 → اتجاه صاعد
• إذا السعر تحت EMA200 → اتجاه هابط
ويظهر المؤشر:
🟢 سهم أخضر عند تحول الاتجاه لصعود
🔴 سهم أحمر عند تحول الاتجاه لهبوط
ميزة التحول فقط عند تغيير الاتجاه (No Noise).
⸻
🔶 7 — أربع موفنقات احترافية (EMA 20 – 50 – 100 – 200)
المؤشر يعرض الموفنقات الأربعة الأساسية:
• EMA 20 → اتجاه قصير
• EMA 50 → متوسط
• EMA 100 → طويل
• EMA 200 → الاتجاه الرئيسي
مع إمكانية:
• تغيير اللون
• تغيير الطول
• إخفائها وإظهارها
⸻
🔶 8 — فيبوناتشي الديناميكي (Dynamic Green Fib)
ميزة قوية جداً تظهر فقط عند تفعيلها.
تحسب أعلى وأدنى سعر في Lookback Period ثم ترسم مستويات سلبية:
• –0.23
• –0.75
• –1.20
هذه المستويات تظهر كخطوط خضراء تحت السعر وتستخدم لـ:
• تحديد مناطق الانعكاس المخفية
• رصد الدعم الديناميكي
• اكتشاف القيعان المحتملة
⸻
🔶 9 — المرونة الكاملة للمستخدم
المؤشر يسمح لك التحكم بكل شيء:
✔️ تفعيل/إلغاء الـ OB
✔️ تفعيل/إلغاء الـ FVG
✔️ تفعيل/إلغاء مستويات فيبوناتشي
✔️ إضافة مستويات مخصصة
✔️ اختيار الفريم المستخدم
✔️ تغيير الألوان
✔️ التحكم في الاتجاه والموفنقات
⸻
🎯 الخلاصة
هذا السكربت يعمل كنظام تحليلي متكامل يجمع:
✔️ فيبوناتشي
✔️ السيولة المؤسسية (OB + FVG)
✔️ الاتجاه الذكي
✔️ الكلاستر الاحترافي
✔️ الموفنقات
✔️ فيبوناتشي الديناميكي
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.