PROTECTED SOURCE SCRIPT
已更新 Bollinger Bands (MTF) + Bandwidth & %B

JBB MTF: Bollinger Bands (MTF) + Bandwidth & %B
This Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
This Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF3) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF3) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF4) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF4) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF3) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF3) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
發行說明
JBB MTF: Bollinger Bands (MTF) + Bandwidth & %BThis Pine v6 indicator overlays multi‑timeframe Bollinger Bands on the price chart and adds a lower panel with normalized Bandwidth (histogram) and %B (line), plus squeeze/bulge markers and alerts for volatility shifts.
Key idea: See higher‑timeframe BB context on your working chart while tracking volatility regimes and price position within bands.
Features
- Multi‑Timeframe BBs: Up to four TFs (TF1–TF3) via request.security, each with visibility, colors, line widths, and optional background fills.
- Configurable Inputs: Length, MA type (SMA/EMA/SMMA/WMA/VWMA), Source, StdDev multiplier, and Offset.
- Lower Panel Metrics: %B (line) shows price position in the band; Bandwidth (histogram) shows width relative to basis, normalized and color‑coded vs its SMA. Reference lines at 0, 0.5, 1.0; raw highest/lowest bandwidth lines for context.
- Squeeze/Bulge Detection: Alerts when bandwidth equals the rolling lowest (Squeeze) or highest (Bulge).
How It Works
- Per timeframe, BBs use the chosen MA basis and standard deviation × multiplier to form upper/lower bands.
- A selectable TF (TF1–TF3) drives %B/Bandwidth calculations, independent of overlay TFs.
* Bandwidth is normalized to the rolling min–max window with safeguards against division by zero.
Use Cases
- Visualize higher‑timeframe context directly on your chart.
- Spot volatility squeezes and expansions with objective markers and alerts.
* Combine %B momentum with Bandwidth regime changes to refine entries and exits.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。