PROTECTED SOURCE SCRIPT
Telah dikemas kini

SMC with Fixed Fibonacci (Last Two Structure Changes) - Modified

1 162
Detailed Indicator Description (English):

This indicator combines SMC market structure analysis with dynamic Fibonacci retracement levels to help traders track market directional changes and identify key support and resistance zones. Below is a detailed explanation of its components and functions:

Timeframe & Market Structure Analysis:

Timeframe Selection:
The indicator uses data from a user-defined timeframe for its analysis. If left blank, it defaults to the chart’s timeframe.
Pivot Calculation:
It calculates swing highs and swing lows using a pivot length (default is 4), which are then used to determine the market structure.
Market Structure Determination:
Based on these swing points, the indicator identifies the market trend as bullish or bearish and plots a market structure line (green for bullish, red for bearish).
Dynamic Fibonacci Retracement Levels:

Dynamic Drawing:
When a market structure change occurs, the indicator sets a starting pivot (prePivot) — the lowest low before a bullish change or the highest high before a bearish change.
PostPivot Updating:
The indicator then dynamically updates the postPivot level with each new bar (using the highest high for bullish moves and the lowest low for bearish moves).
Calculation Method:
For bullish moves, the Fibonacci retracement is calculated in reverse:
Bullish: Level 1 is at the starting low (prePivot) and level 0 is at the current high (postPivot).
For bearish moves, the levels are calculated in the conventional way (level 1 at the prePivot and level 0 at the current low).
Fibonacci Levels:
The retracement levels drawn include 1, 0.79, 0.705, 0.62, 0.5, and 0, with each level clearly labeled on the chart.
Previous Fibonacci Drawing (Historical Reference):

Retention of Past Levels:
Upon a new market structure change, the current Fibonacci drawing is moved to a “previous” group, remaining fixed on the chart as a historical reference.
User Control:
A toggle option ("Show Previous Fibonacci Drawing") allows users to enable or disable the display of the previous Fibonacci retracement levels.
Automated Alerts:

Alert Level Input:
Users can set an alert on a specific Fibonacci level via an input (default is 0.62).
Alert Tolerance:
The alert tolerance is adjustable and is set to 0.0 by default, meaning the alert triggers exactly when the price reaches the selected Fibonacci level.
Alert Trigger:
The indicator automatically issues an alert when the current price is within the defined tolerance of the chosen Fibonacci level.
Practical Benefits:

Market Structure Insight:
The indicator aids in understanding key turning points and directional changes in the market.
Support/Resistance Identification:
Dynamic and previous Fibonacci retracement levels help pinpoint potential support and resistance areas.
Historical Context:
Retaining the previous Fibonacci drawing allows traders to compare current price action with recent historical structure changes.
Timely Alerts:
Automated alerts ensure that traders are promptly notified when price approaches critical Fibonacci levels, facilitating timely decision-making.
you can Add the indicator many times to your charts with different time to find OTE inside OTE which help you get better results

صف المؤشر بالتفصيل:

هذا المؤشر يجمع بين تحليل هيكل السوق وفق منهجية SMC واستخدام مستويات فيبوناتشي لتصحيح الأسعار، مما يُتيح للمتداول تتبع التغيّرات في الاتجاه وتحديد مناطق الدعم والمقاومة المهمة. وفيما يلي توضيح دقيق لجميع مكوناته ووظائفه:

إطار زمني وتحليل السوق:

يعتمد المؤشر على بيانات من إطار زمني يُحدده المستخدم؛ وإذا تُرك فارغًا، فإنه يستخدم إطار الشارت الحالي.
يُحسب المؤشر نقاط التحول (Swing High وSwing Low) باستخدام قيمة pivot تلقائية مُعينة (تُضبط افتراضيًا على 4)، والتي تُستخدم لتحديد الهيكل السوقي.
بناءً على هذه النقاط، يتم تحديد اتجاه السوق (صعودي أو هبوطي) ورسم خط هيكل السوق الملون (أخضر للصعودي، أحمر للهبوطي).
رسم مستويات فيبوناتشي الديناميكية:

عند تغيير هيكل السوق، يقوم المؤشر بتحديد نقطة البداية (prePivot) التي تكون إما أقل قاع قبل التغير (في حالة الهيكل الصعودي) أو أعلى قمة قبل التغير (في حالة الهيكل الهبوطي).
بعد ذلك، يُحدث المؤشر نقطة النهاية (postPivot) بشكل ديناميكي مع كل شمعة بحيث يتم تحديد السعر الجديد (أعلى سعر في حالة الصعود، أو أدنى سعر في حالة الهبوط).
بالنسبة للحالة الصعودية، تُحسب مستويات فيبوناتشي بطريقة معكوسة بحيث يكون المستوى 1 عند نقطة البداية (القاع) والمستوى 0 عند السعر الجديد (القمة). بينما تُحسب مستويات الحالة الهبوطية بالطريقة التقليدية (المستوى 1 عند القمة و0 عند القاع).
تُرسم هذه المستويات على الشارت مع تسميات توضح قيمة كل مستوى (1، 0.79، 0.705، 0.62، 0.5، و0).
احتفاظ بالرسم السابق:

عند حدوث تغيير جديد في هيكل السوق، يُنقل رسم فيبوناتشي الحالي إلى مجموعة "الرسم السابق" ليبقى مرئيًا كمرجع للتغيّر الأخير.
يمكن للمستخدم التحكم في عرض هذا الرسم السابق عبر خيار "Show Previous Fibonacci Drawing"، حيث يمكن تفعيله أو تعطيله حسب الحاجة.
التنبيهات الآلية:

يوفر المؤشر ميزة إطلاق تنبيه عندما يصل السعر إلى مستوى فيبوناتشي محدد.
يُتيح للمستخدم اختيار مستوى فيبوناتشي للتنبيه (افتراضيًا 0.62) عبر إدخال يُمكن تعديله.
يتم حساب مستوى التنبيه وفقًا للاتجاه الحالي (مع استخدام الصيغة المعكوسة في الحالة الصعودية)، ويتم إطلاق التنبيه تلقائيًا عندما يكون الفرق بين السعر الحالي والمستوى المحسوب ضمن قيمة "Alert Tolerance" (والتي تُضبط افتراضيًا على 0.0).
الفوائد العملية للمؤشر:

تحليل هيكل السوق: يساعد المؤشر المتداول على فهم التغيرات الرئيسية في اتجاه السوق من خلال تحديد نقاط التحول الرئيسية.
تحديد مناطق التصحيح: تُظهر مستويات فيبوناتشي مناطق الدعم والمقاومة المحتملة، مما يُمكن المتداول من اتخاذ قرارات تداول أكثر دقة.
المرجعية التاريخية: الاحتفاظ برسم فيبوناتشي سابق يتيح للمتداول مقارنة التغيرات الحالية مع الفترات السابقة.
تنبيهات فورية: ميزة التنبيه تُبقي المتداول على علم عندما يصل السعر إلى مستوى فيبوناتشي مهم، مما يُساعد في اتخاذ إجراءات سريعة.
Nota Keluaran
fixed
Nota Keluaran
updated
Nota Keluaran
udpated
Nota Keluaran
updated

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.