OPEN-SOURCE SCRIPT
已更新 Bollinger Bottom + Middle Lines with Inline Text

This script visualizes key Bollinger Band levels based on two different SMAs (20 & 50 periods), with clear labeling and a smart price table.
🔸 Features:
Draws lower and middle Bollinger Band lines for both SMA(20) and SMA(50)
Inline text at the end of each line instead of default labels (cleaner view)
A dynamic table in the top-right corner, sorted from highest to lowest level
Color-coded rows:
▪️ Orange → BB20 Mid & BB20 Lower
▪️ Green → BB50 Mid & BB50 Lower
Auto-updates each bar without cluttering the chart
✅ Ideal for identifying technical accumulation zones
✅ Suitable for investors using scaling-in strategies or mean-reversion logic
🔸 Features:
Draws lower and middle Bollinger Band lines for both SMA(20) and SMA(50)
Inline text at the end of each line instead of default labels (cleaner view)
A dynamic table in the top-right corner, sorted from highest to lowest level
Color-coded rows:
▪️ Orange → BB20 Mid & BB20 Lower
▪️ Green → BB50 Mid & BB50 Lower
Auto-updates each bar without cluttering the chart
✅ Ideal for identifying technical accumulation zones
✅ Suitable for investors using scaling-in strategies or mean-reversion logic
版本注释
✅ Summary of Code Updates1. Extended Horizontal Support Lines (Persistent):
Instead of redrawing new lines on every bar, we now:
Created four line variables using var to hold the horizontal support levels (BB20 Mid, BB20 Lower, BB50 Mid, BB50 Lower).
Used line.new() only once for each level to initialize the lines.
Enabled extend=extend.both to make the lines stretch across the full chart (both left and right).
2. Dynamic Value Updates (Live Adjustment):
On every bar update, line.set_y1() and line.set_y2() are used to adjust the Y-values of each line based on the current Bollinger Band calculations, keeping the lines accurately aligned with the indicator values.
3. Cleaner and More Efficient Rendering:
Reduced overhead by avoiding multiple line.new() calls which would clutter the chart.
Ensured that horizontal levels persist and dynamically reflect any changes in timeframe or price action.
版本注释
📌 الوصف بالعربي:مؤشر بيعرض مستويات الدعم المستخرجة من 3 أطوال لمتوسط البولنجر باند (10 - 20 - 50)
▪️ بيحسب الحد الأوسط والحد السفلي لكل متوسط
▪️ بيعرض المستويات في جدول من الأعلى إلى الأقل
▪️ كل مستوى عليه تسمية (الدفعة الأولى – التانية – التالتة...)
▪️ الخطوط بتترسم باللون الأسود كدعم بصري على الشارت
✅ مناسب جدًا للمستثمرين اللي بيجمعوا على دفعات
✅ مفيد خصوصًا على الفريم الأسبوعي لتحديد مناطق التوسيط الآمن
✅ تصميم بسيط، واضح، وسهل المتابعة بدون زحمة على الشارت
---
📌 Description in English:
This indicator displays support levels from 3 different Bollinger Band lengths (10 - 20 - 50).
▪️ Calculates the Middle and Lower Bands for each
▪️ Sorts the levels from highest to lowest
▪️ Displays them in a table with entry batch labels (Batch 1, 2, 3…)
▪️ Draws clean black lines on the chart as visual guides
✅ Especially useful for long-term investors using cost averaging
✅ Designed for weekly timeframe strategies
✅ Clean and structured layout with no visual clutter
版本注释
Indicator Update: Customizable Bollinger LevelsThis update introduces a significant enhancement to the "Bollinger Levels Table - Horizontal Support Zones" indicator, providing users with greater control over the displayed Bollinger Band levels.
Previously, the indicator automatically showed all BB10, BB20, and BB50 Mid and Lower levels. With this new version, you can now selectively show or hide any of these six levels directly from the indicator's settings.
Key Features of the Update:
Individual Level Visibility Controls: A new "Visible Levels" section has been added to the indicator's settings. Here, you'll find individual checkboxes for:
BB10 Mid Level
BB10 Lower Level
BB20 Mid Level
BB20 Lower Level
BB50 Mid Level
BB50 Lower Level
Simply check or uncheck the boxes to customize which levels appear.
Dynamic Table and Chart Display: The indicator's table and the horizontal lines drawn on the chart will now only display the levels you've chosen to show. This reduces clutter and allows you to focus on the Bollinger Bands most relevant to your analysis.
Improved Customization: This enhancement empowers traders to tailor the indicator to their specific trading strategies, whether they prefer a simplified view with fewer levels or a comprehensive display of all available Bollinger Bands.
This update aims to make the "Bollinger Levels Table - Horizontal Support Zones" indicator more flexible and user-friendly, giving you more control over your chart's visual information.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。