PROTECTED SOURCE SCRIPT
已更新

Multi Bollinger Bands eXtra

87

Multi BBX – Behavior Layer is a multi‑timeframe Bollinger Bands indicator.
It overlays three independent Bollinger Band sets on the chart, each calculated from different timeframes, allowing traders to observe volatility layers simultaneously.

🔹 Timeframes
The indicator supports all standard TradingView resolutions:
10 seconds, 1 minute, 5 minutes, 1 hour, 4 hours, 1 day, 1 week, 1 month.
Intermediate custom resolutions (like 15m, 45m, etc.) can also be selected depending on TradingView’s chart settings.
Each band (BB1, BB2, BB3) can be assigned a different timeframe.

🔹 Bands and Colors
BB1 (default 15m) → plotted in red (upper, middle, lower lines).

BB2 (default 5m) → plotted in orange.

BB3 (default 1m) → plotted in blue.
This color separation ensures clear visual distinction between layers.

🔹 Parameters
Each band has independent settings:

Length (period of moving average).

Basis (SMA or EMA).

Source (close, open, high, low).

Deviation (standard deviation multiplier, default 2.0).

Offset (shift forward/backward).

Wait for close (whether to confirm bar close before updating values).

🔹 Calculation Logic
Bollinger Bands are calculated as:

Middle band = SMA/EMA of selected source.

Upper band = Middle + (StdDev × deviation).

Lower band = Middle – (StdDev × deviation).

The script uses request.security() to fetch values from chosen timeframes, ensuring multi‑layer visualization.

🔹 Use Cases
Short‑term volatility detection (BB3).

Medium‑term trend confirmation (BB2).

Longer‑term price behavior tracking (BB1).

Comparing band overlaps to identify breakout zones or potential reversals.
版本注释
“Style settings optimized.”

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。