OPEN-SOURCE SCRIPT

Smart Volume S/R Pro [The_lurker]

2057
مؤشر "Smart Volume S/R Pro " هو أداة تحليل فني متقدمة مصممة لمساعدة المتداولين في تحديد مستويات الدعم والمقاومة القوية بناءً على حجم التداول، مع إضافة ميزات تحليلية متطورة مثل تصفية الاتجاه ، مناطق الثقة ، تقييم القوة ، حساب احتمالية الاختراق ، قياس السيولة ، تحديد الأهداف السعرية ، ومستويات فيبوناتشي . وايضا تقديم تسميات (Labels) بجانب كل مستوى دعم ومقاومة، تحتوي على أرقام ومعلومات دقيقة تعكس حالة السوق. هذه التسميات ليست مجرد زينة، بل أدوات تحليلية تساعد المتداولين على اتخاذ قرارات مستنيرة بناءً على بيانات السوقيهدف هذا المؤشر إلى توفير رؤية شاملة للسوق .

الوظائف الرئيسية للمؤشر

1- تحديد مستويات الدعم والمقاومة بناءً على حجم التداول العالي
يقوم المؤشر بتحليل الأشرطة (Bars) السابقة (حتى 300 شريط افتراضيًا) لتحديد النقاط التي شهدت أعلى مستويات حجم التداول.
يرسم خطوط أفقية تمثل مستويات المقاومة (عند أعلى سعر في تلك الأشرطة) والدعم (عند أدنى سعر)، ويمكن للمستخدم اختيار عدد الخطوط المعروضة (من 1 إلى 6).

2- تصفية الاتجاه باستخدام مؤشر ADX
يستخدم المؤشر مؤشر الاتجاه المتوسط (ADX) لتقييم قوة الاتجاه في السوق.
عندما تكون قوة الاتجاه عالية (تتجاوز عتبة محددة، 25 افتراضيًا)، يقلل المؤشر عدد مستويات الدعم والمقاومة المعروضة للتركيز فقط على المستويات الأكثر أهمية.

3- مناطق الثقة الديناميكية
يضيف المؤشر مناطق حول مستويات الدعم والمقاومة بناءً على متوسط المدى الحقيقي (ATR)، مما يساعد المتداولين على تصور النطاقات التي قد يتفاعل فيها السعر مع هذه المستويات.
يمكن تعديل عرض هذه المناطق باستخدام مضاعف ATR.

4- تقييم قوة المستويات
يحسب المؤشر قوة كل مستوى بناءً على حجم التداول، عدد المرات التي تم اختبار المستوى فيها (Touch Count)، وقرب السعر الحالي من المستوى.
يتم عرض درجة القوة (من 0 إلى 100) بجانب كل مستوى إذا تم تفعيل هذه الخاصية.

5- احتمالية الاختراق
يقدّر المؤشر احتمالية اختراق كل مستوى بناءً على الزخم (ROC)، قوة المستوى، والمسافة بين السعر الحالي والمستوى.
يظهر الاحتمال كنسبة مئوية إذا تم تفعيل الخيار، مما يساعد المتداولين على توقع الحركات المحتملة.

6- تحليل السيولة التاريخية
يقيس المؤشر السيولة حول كل مستوى بناءً على حجم التداول في النطاقات القريبة منه.
يمكن عرض قيم السيولة في التسميات أو استخدامها لتعديل عرض الخطوط (الخطوط الأكثر سيولة تظهر أعرض).

7- الأهداف السعرية
عند تفعيل هذه الخاصية، يحسب المؤشر أهداف سعرية للاختراق (Breakout) والارتداد (Reversal) بناءً على الزخم وقوة المستوى وATR.
يمكن عرض هذه الأهداف كنصوص في التسميات أو كخطوط أفقية على الرسم البياني.

8- مستويات فيبوناتشي
يرسم المؤشر مستويات فيبوناتشي (0.0، 0.236، 0.382، 0.5، 0.618، 0.786، 1.0) بناءً على أعلى وأدنى سعر في فترة النظرة الخلفية.
يمكن للمستخدم اختيار أي من هذه المستويات لعرضها أو إخفائها.

9- تنبيه شامل للاختراق
يوفر المؤشر تنبيهًا واحدًا يشمل جميع المستويات، حيث يُطلق التنبيه عندما يخترق السعر أي مستوى دعم أو مقاومة مع رسالة توضح نوع الاختراق والمستوى المخترق.

كيفية عمل المؤشر
الخطوة الأولى: يحدد المؤشر الأشرطة ذات الحجم العالي خلال فترة النظرة الخلفية المحددة (Lookback Period).

الخطوة الثانية: يرسم مستويات الدعم والمقاومة بناءً على أعلى وأدنى الأسعار في تلك الأشرطة، مع مراعاة عدد الخطوط المختارة من المستخدم.

الخطوة الثالثة: يطبق مرشح الاتجاه (إذا كان مفعلاً) لتقليل عدد المستويات في حالة الاتجاه القوي.

الخطوة الرابعة: يضيف التحليلات الإضافية مثل القوة، السيولة، احتمالية الاختراق، والأهداف السعرية، ويرسم مناطق الثقة ومستويات فيبوناتشي حسب الإعدادات.

الخطوة الخامسة: يراقب السعر ويطلق تنبيهًا عند الاختراق.

الإعدادات القابلة للتخصيص

1- فترة النظرة الخلفية (Lookback Period): عدد الأشرطة التي يتم تحليلها (افتراضيًا 300).

2- عدد الخطوط (Number of Lines): من 1 إلى 6 مستويات دعم ومقاومة.

3- الألوان والأنماط: يمكن تغيير ألوان الخطوط وأنماطها (ممتلئة، متقطعة، منقطة).

4- التسميات: تفعيل/تعطيل التسميات، وحجمها، وموقعها، ولون النص.

5- مرشح الاتجاه: تفعيل/تعطيل ADX، وتعديل طوله وعتبته.

6- مناطق الثقة: تفعيل/تعطيل، وتعديل طول ATR ومضاعفه.

7- القوة واحتمالية الاختراق: تفعيل/تعطيل العرض، وتعديل طول ROC.

8- السيولة: تفعيل/تعطيل تأثير السيولة على عرض الخطوط وقيمها في التسميات.

9- الأهداف السعرية: تفعيل/تعطيل الأهداف وعرضها كخطوط.

10- فيبوناتشي: اختيار المستويات المعروضة ولون الخطوط.

فوائد المؤشر
دقة عالية: يعتمد على حجم التداول لتحديد المستويات، مما يجعله أكثر موثوقية من المستويات العشوائية.
مرونة: يوفر خيارات تخصيص واسعة تتيح للمتداولين تكييفه حسب استراتيجياتهم.
تحليل شامل: يجمع بين الدعم والمقاومة، الاتجاه، السيولة، والأهداف في أداة واحدة.
سهولة الاستخدام: التسميات والتنبيهات تجعل من السهل متابعة السوق دون تعقيد.

==================================================================================تسميات (Labels) بجانب كل مستوى دعم ومقاومة، تحتوي على أرقام ومعلومات دقيقة تعكس حالة السوق. هذه التسميات ليست مجرد زينة، بل أدوات تحليلية تساعد المتداولين على اتخاذ قرارات مستنيرة بناءً على بيانات السوق. في هذا الشرح، سنستعرض كل رقم أو قيمة تظهر في التسميات ومعناها العملي.

مكونات التسميات
التسميات تظهر بجانب كل مستوى دعم (Support) ومقاومة (Resistance) وتبدأ بحرف "S" للدعم أو "R" للمقاومة، تليها مجموعة من الأرقام والقيم التي يمكن تفعيلها أو تعطيلها حسب إعدادات المستخدم. إليك تفصيل كل عنصر:

1- عدد اللمسات (Touch Count)
الرمز: يظهر مباشرة بعد "S" أو "R" (مثال: "R: 5" أو "S: 3").
المعنى: يشير إلى عدد المرات التي اختبر فيها السعر هذا المستوى دون اختراقه.
الفائدة: كلما زاد عدد اللمسات، كلما كان المستوى أقوى وأكثر أهمية. على سبيل المثال، إذا كان "R: 5"، فهذا يعني أن السعر ارتد من هذا المستوى 5 مرات، مما يجعله مقاومة قوية محتملة.

2- قوة المستوى (Strength Rating)
الرمز: يظهر بين قوسين مربعين (مثال: "[75]").
المعنى: قيمة من 0 إلى 100 تعكس قوة المستوى بناءً على عوامل مثل حجم التداول، عدد اللمسات، وقرب السعر الحالي من المستوى.
الفائدة: القيم العالية (مثل 75 أو أكثر) تشير إلى مستوى قوي يصعب اختراقه، بينما القيم المنخفضة (مثل 30 أو أقل) تدل على ضعف المستوى وسهولة اختراقه. يمكن للمتداول استخدام هذا لتحديد المستويات الأكثر موثوقية.

3- احتمالية الاختراق (Breakout Probability)
الرمز: يبدأ بحرف "B" متبوعًا بنسبة مئوية (مثال: "B: 60%").
المعنى: نسبة من 0% إلى 100% تُظهر احتمالية اختراق السعر للمستوى بناءً على الزخم الحالي، قوة المستوى، والمسافة بين السعر والمستوى.
الفائدة: نسبة مرتفعة (مثل 60% أو أكثر) تعني أن السعر قد يخترق المستوى قريبًا، بينما النسب المنخفضة (مثل 20%) تشير إلى احتمال ارتداد السعر. هذا مفيد لتوقع الحركة التالية.

4- قيمة السيولة (Liquidity Value)
الرمز: يبدأ بحرف "L" متبوعًا برقم (مثال: "L: 1200").
المعنى: يمثل متوسط حجم التداول في النطاق القريب من المستوى، مما يعكس السيولة التاريخية حوله.
الفائدة: القيم العالية تدل على وجود سيولة كبيرة، مما يعني أن السعر قد يتفاعل بقوة مع هذا المستوى (إما بالارتداد أو الاختراق). القيم المنخفضة تشير إلى سيولة ضعيفة، مما قد يجعل المستوى أقل تأثيرًا.

5- الأهداف السعرية (Price Targets)
الرمز: يبدأ بـ "BT" (هدف الاختراق) و"RT" (هدف الارتداد) متبوعين بأرقام (مثال: "BT: 150.50 RT: 148.20").
المعنى:
BT (Breakout Target): السعر المحتمل الذي قد يصل إليه السعر بعد اختراق المستوى.
RT (Reversal Target): السعر المحتمل الذي قد يصل إليه السعر إذا ارتد من المستوى.
الفائدة: تساعد المتداولين في تحديد نقاط الخروج المحتملة بعد الاختراق أو الارتداد، مما يسهل وضع خطة تداول دقيقة.

أمثلة عملية
تسمية مقاومة: "R: 4 [80] B: 25% L: 1500 BT: 155.00 RT: 152.00"
المستوى اختُبر 4 مرات، قوته 80 (قوي جدًا)، احتمالية الاختراق 25% (منخفضة، أي احتمال ارتداد أعلى)، السيولة 1500 (مرتفعة)، هدف الاختراق 155.00، هدف الارتداد 152.00.
الاستنتاج: المستوى قوي ومن المرجح أن يرتد السعر منه، لكن إذا اخترق، فقد يصل إلى 155.00.

تسمية دعم: "S: 2 [40] B: 70% L: 800 BT: 145.00 RT: 147.50"
المستوى اختُبر مرتين، قوته 40 (متوسطة إلى ضعيفة)، احتمالية الاختراق 70% (مرتفعة)، السيولة 800 (متوسطة)، هدف الاختراق 145.00، هدف الارتداد 147.50.
الاستنتاج: المستوى ضعيف ومن المحتمل أن يخترقه السعر ليهبط إلى 145.00.

كيفية الاستفادة من التسميات
تحديد القوة والضعف: استخدم قوة المستوى (Strength) لمعرفة ما إذا كان المستوى موثوقًا للارتداد أو عرضة للاختراق.

توقع الحركة: انظر إلى احتمالية الاختراق (Breakout Probability) لتحديد ما إذا كنت ستنتظر اختراقًا أو ترتدًا.

إدارة المخاطر: استخدم الأهداف السعرية (BT وRT) لتحديد نقاط جني الأرباح أو وقف الخسارة.

تقييم السيولة: ركز على المستويات ذات السيولة العالية لأنها غالبًا تكون نقاط تحول رئيسية في السوق.

تأكيد التحليل: ادمج عدد اللمسات مع القوة والسيولة للحصول على صورة كاملة عن أهمية المستوى.

تخصيص التسميات
يمكن للمستخدم تفعيل أو تعطيل أي من هذه القيم (القوة، الاحتمالية، السيولة، الأهداف) من إعدادات المؤشر.
يمكن أيضًا تغيير حجم التسميات (صغير، عادي، كبير)، موقعها (يمين، يسار، أعلى، أسفل)، ولون النص لتناسب احتياجاتك.

التسميات في هذا المؤشر هي بمثابة لوحة تحكم صغيرة بجانب كل مستوى دعم ومقاومة، تقدم لك معلومات فورية عن قوته، احتمالية اختراقه، سيولته، وأهدافه السعرية. بفهم هذه الأرقام، يمكنك تحسين قراراتك في التداول، سواء كنت تبحث عن نقاط دخول، خروج، أو إدارة مخاطر. إذا كنت تريد أداة تجمع بين البساطة والعمق التحليلي .

تنويه:
المؤشر هو أداة مساعدة فقط ويجب استخدامه مع التحليل الفني والأساسي لتحقيق أفضل النتائج.

إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView.

The Smart Volume S/R Pro indicator is an advanced technical analysis tool designed to help traders identify strong support and resistance levels based on trading volume, with the addition of advanced analytical features such as trend filtering, confidence zones, strength assessment, breakout probability calculation, liquidity measurement, price target identification, and Fibonacci levels. It also provides labels next to each support and resistance level, containing accurate numbers and information that reflect the market condition. These labels are not just decorations, but analytical tools that help traders make informed decisions based on market data. This indicator aims to provide a comprehensive view of the market.

Main functions of the indicator

1- Identifying support and resistance levels based on high trading volume
The indicator analyzes previous bars (up to 300 bars by default) to identify the points that witnessed the highest levels of trading volume.

It draws horizontal lines representing resistance levels (at the highest price in those bars) and support (at the lowest price), and the user can choose the number of lines displayed (from 1 to 6).

2- Filtering the trend using the ADX indicator
The indicator uses the Average Directional Index (ADX) to assess the strength of a trend in the market.

When the strength of the trend is high (exceeding a specified threshold, 25 by default), the indicator reduces the number of support and resistance levels displayed to focus only on the most important levels.

3- Dynamic Confidence Zones
The indicator adds zones around support and resistance levels based on the Average True Range (ATR), helping traders visualize the ranges in which the price may interact with these levels.

The width of these zones can be adjusted using the ATR multiplier.

4- Assessing the Strength of Levels
The indicator calculates the strength of each level based on trading volume, the number of times the level has been tested (Touch Count), and the proximity of the current price to the level.

A strength score (from 0 to 100) is displayed next to each level if this feature is enabled.

5- Breakout Probability
The indicator estimates the probability of breaking each level based on momentum (ROC), the strength of the level, and the distance between the current price and the level.
The probability is displayed as a percentage if the option is enabled, helping traders anticipate potential moves.

6- Historical Liquidity Analysis
The indicator measures liquidity around each level based on the trading volume in the ranges near it.
The liquidity values ​​can be displayed in the labels or used to adjust the width of the lines (the most liquid lines appear wider).

7- Price Targets
When this feature is enabled, the indicator calculates price targets for breakout and reversal based on momentum, level strength and ATR.
These targets can be displayed as text in the labels or as horizontal lines on the chart.

8- Fibonacci Levels
The indicator plots Fibonacci levels (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0) based on the highest and lowest price in the lookback period.
The user can choose which of these levels to display or hide.

9- Comprehensive Breakout Alert
The indicator provides a single alert that includes all levels, where the alert is triggered when the price breaks any support or resistance level with a message explaining the type of breakout and the level broken.

How the indicator works
Step 1: The indicator identifies the bars with high volume during the specified Lookback Period.

Step 2: Draws support and resistance levels based on the highest and lowest prices in those bars, taking into account the number of lines selected by the user.

Step 3: Apply the trend filter (if enabled) to reduce the number of levels in case of a strong trend.

Step 4: Adds additional analyses such as strength, liquidity, breakout probability, and price targets, and draws confidence zones and Fibonacci levels according to the settings.

Step 5: Monitors the price and triggers an alert when the breakout occurs.

Customizable Settings

1- Lookback Period: Number of bars to analyze (default 300).

2- Number of Lines: From 1 to 6 support and resistance levels.

3- Colors and Styles: Line colors and styles can be changed (filled, dashed, dotted).

4- Labels: Enable/disable labels, their size, location, and text color.

5- Trend Filter: Enable/disable ADX, and modify its length and threshold.

6- Confidence Zones: Enable/disable, and modify the ATR length and multiplier.

7- Strength and Breakout Probability: Enable/disable the display, and modify the ROC length.

8- Liquidity: Enable/disable the effect of liquidity on the display of the lines and their values ​​in the labels.

9- Price Targets: Enable/disable the targets and display them as lines.

10- Fibonacci: Choose the displayed levels and the color of the lines.

Indicator Benefits
High Accuracy: It relies on trading volume to determine the levels, which makes it more reliable than random levels.

Flexibility: It provides extensive customization options that allow traders to adapt it to their strategies.
Comprehensive Analysis: Combines support and resistance, trend, liquidity, and targets in one tool. Ease of Use: Labels and alerts make it easy to follow the market without complexity.

Labels next to each support and resistance level contain accurate numbers and information that reflect the market situation. These labels are not just decorations, but analytical tools that help traders make informed decisions based on market data. In this explanation, we will review each number or value that appears in the labels and their practical meaning.

Label Components
Labels appear next to each support and resistance level and begin with the letter "S" for support or "R" for resistance, followed by a set of numbers and values ​​that can be enabled or disabled according to the user's settings. Here is a breakdown of each element:

1- Touch Count
Symbol: Appears immediately after "S" or "R" (example: "R: 5" or "S: 3").
Meaning: Indicates the number of times the price has tested this level without breaking it.
Benefit: The more touches, the stronger and more important the level. For example, if it is "R: 5", it means that the price has bounced off this level 5 times, making it a potentially strong resistance.

2- Strength Rating
Symbol: Appears between square brackets (example: "[75]").
Meaning: A value from 0 to 100 that reflects the strength of the level based on factors such as trading volume, number of touches, and proximity of the current price to the level.
Benefit: High values ​​(such as 75 or more) indicate a strong level that is difficult to break, while low values ​​(such as 30 or less) indicate a weak level that is easy to break. A trader can use this to determine the most reliable levels.

3- Breakout Probability
Symbol: Starts with the letter "B" followed by a percentage (example: "B: 60%").
Meaning: A percentage from 0% to 100% that shows the probability of the price breaking the level based on the current momentum, the strength of the level, and the distance between the price and the level.
Interest: A high percentage (such as 60% or more) means that the price may soon break through the level, while low percentages (such as 20%) indicate that the price may bounce. This is useful for anticipating the next move.

4- Liquidity Value
Symbol: Starts with the letter "L" followed by a number (example: "L: 1200").
Meaning: Represents the average trading volume in the range near the level, reflecting historical liquidity around it.
Interest: High values ​​indicate high liquidity, meaning that the price may react strongly to this level (either by bouncing or breaking through). Low values ​​indicate low liquidity, which may make the level less influential.

5- Price Targets
Symbol: Starts with "BT" (breakout target) and "RT" (rebound target) followed by numbers (example: "BT: 150.50 RT: 148.20").
Meaning:
BT (Breakout Target): The potential price that the price may reach after breaking the level.
RT (Reversal Target): The potential price that the price may reach if it rebounds from the level.
Utility: Helps traders identify potential exit points after a breakout or rebound, making it easier to develop an accurate trading plan.

Working examples
Resistance label: "R: 4 [80] B: 25% L: 1500 BT: 155.00 RT: 152.00"
Level tested 4 times, strength 80 (very strong), probability of breakout 25% (low, i.e. higher probability of rebound), liquidity 1500 (high), breakout target 155.00, rebound target 152.00.
Conclusion: The level is strong and the price is likely to rebound from it, but if it breaks, it may reach 155.00.

Support Label: "S: 2 [40] B: 70% L: 800 BT: 145.00 RT: 147.50"
Level tested twice, Strength 40 (medium to weak), Breakout Probability 70% (high), Liquidity 800 (medium), Breakout Target 145.00, Rebound Target 147.50.
Conclusion: The level is weak and the price is likely to break it to drop to 145.00.

How to use labels
Determine strength and weakness: Use the level's strength to see if the level is reliable for a bounce or vulnerable to a breakout.

Predict the move: Look at the Breakout Probability to determine whether to wait for a breakout or a bounce.

Risk Management: Use price targets (BT and RT) to set take profit or stop loss points.

Liquidity Evaluation: Focus on levels with high liquidity as they are often key turning points in the market.

Analysis Confirmation: Combine the number of touches with strength and liquidity to get a complete picture of the level’s importance.

Customize Labels
The user can enable or disable any of these values ​​(strength, probability, liquidity, targets) from the indicator settings.

The size of the labels (small, normal, large), their position (right, left, top, bottom), and the color of the text can also be changed to suit your needs.

The labels in this indicator act as a small dashboard next to each support and resistance level, providing you with instant information about its strength, probability of breakout, liquidity, and price targets. By understanding these numbers, you can improve your trading decisions, whether you are looking for entry points, exit points, or risk management. If you want a tool that combines simplicity with analytical depth.

Disclaimer:
The indicator is an auxiliary tool only and should be used in conjunction with technical and fundamental analysis for best results.

Disclaimer
The information and posts are not intended to be, or constitute, any financial, investment, trading or other types of advice or recommendations provided or endorsed by TradingView.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。