OPEN-SOURCE SCRIPT
تم تحديثه Buying Selling Ratio with Label

Automate your pinescript to Tradovate/Ninja-Trader! ninja-view.com/
The "Buying Selling Ratio with Label" indicator calculates and displays the buying and selling ratio based on volume and price movements. Here's a description of its functionality:
The indicator calculates the buying and selling volumes using the formula:
Buying = Volume * ((Close - Low) / (High - Low))
Selling = Volume * ((High - Close) / (High - Low))
This calculation determines the volume distribution between buying and selling pressure within each bar.
The indicator then calculates the Buying Selling Ratio (BSR) as a percentage using the formula:
BSR = (Buying / (Buying + Selling)) * 100
The BSR value represents the proportion of buying volume relative to the total buying and selling volume.
The BSR is plotted on the chart as a line, with colors indicating different market conditions:
If the BSR is above the overbought level (defined as 90 in this example), the line is displayed in red.
If the BSR is below the oversold level (defined as 10 in this example), the line is displayed in green.
Otherwise, the line is displayed in blue.
Additionally, the indicator includes labels above each bar to show the buying and selling percentages for that specific bar. The labels display the text "Buy: X%, Sell: Y%", where X represents the percentage of buying volume and Y represents the percentage of selling volume for the given bar.
By enabling the "Show Past Labels" option, the indicator displays labels for previous bars. Otherwise, it only displays the label for the latest bar.
Overall, the indicator provides insights into buying and selling pressures and their relative strengths based on volume analysis.
The "Buying Selling Ratio with Label" indicator calculates and displays the buying and selling ratio based on volume and price movements. Here's a description of its functionality:
The indicator calculates the buying and selling volumes using the formula:
Buying = Volume * ((Close - Low) / (High - Low))
Selling = Volume * ((High - Close) / (High - Low))
This calculation determines the volume distribution between buying and selling pressure within each bar.
The indicator then calculates the Buying Selling Ratio (BSR) as a percentage using the formula:
BSR = (Buying / (Buying + Selling)) * 100
The BSR value represents the proportion of buying volume relative to the total buying and selling volume.
The BSR is plotted on the chart as a line, with colors indicating different market conditions:
If the BSR is above the overbought level (defined as 90 in this example), the line is displayed in red.
If the BSR is below the oversold level (defined as 10 in this example), the line is displayed in green.
Otherwise, the line is displayed in blue.
Additionally, the indicator includes labels above each bar to show the buying and selling percentages for that specific bar. The labels display the text "Buy: X%, Sell: Y%", where X represents the percentage of buying volume and Y represents the percentage of selling volume for the given bar.
By enabling the "Show Past Labels" option, the indicator displays labels for previous bars. Otherwise, it only displays the label for the latest bar.
Overall, the indicator provides insights into buying and selling pressures and their relative strengths based on volume analysis.
ملاحظات الأخبار
//updateنص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.