OPEN-SOURCE SCRIPT
已更新

Dual Bollinger Bands

205
Indicator Name:
Double Bollinger Bands (2-9 & 2-20)

Description:
This indicator plots two sets of Bollinger Bands on a single chart for enhanced volatility and trend analysis:

Fast Bands (2-9 Length) – Voilet

More responsive to short-term price movements.

Useful for spotting quick reversals or scalping opportunities.

Slow Bands (2-20 Length) – Black

Smoother, trend-following bands for longer-term context.

Helps confirm broader market direction.

Both bands use the standard settings (2 deviations, SMA basis) for consistency. The transparent fills improve visual clarity while keeping the chart uncluttered.

Use Cases:
Trend Confirmation: When both bands expand together, it signals strong momentum.

Squeeze Alerts: A tight overlap suggests low volatility before potential breakouts.

Multi-Timeframe Analysis: Compare short-term vs. long-term volatility in one view.

How to Adjust:
Modify lengths (2-9 and 2-20) in the settings.

Change colors or transparency as needed.

Why Use This Script?
No Repainting – Uses standard Pine Script functions for reliability.

Customizable – Easy to tweak for different trading styles.

Clear Visuals – Color-coded bands with background fills for better readability.

Ideal For:
Swing traders, day traders, and volatility scalpers.

Combining short-term and long-term Bollinger Band strategies.
發行說明
Indicator Name:
Dual-Length Bollinger Bands (9 & 20) with Multi-Timeframe Volatility Analysis

Description:
This script enhances traditional Bollinger Bands by plotting two independent bands (lengths 9 and 20) on a single chart, providing a unique way to analyze volatility across different time horizons. Unlike standard implementations, this tool allows traders to compare short-term and long-term volatility dynamics simultaneously, using Simple Moving Averages (SMA) and ±2 standard deviations for consistency.

Originality & Methodology
Dual-Band Design

Fast Bands (9 Length, Blue): React quickly to price changes, ideal for identifying short-term overbought/oversold conditions or scalping opportunities.

Formula: SMA(close, 9) ± 2 * StdDev(close, 9)

Slow Bands (20 Length, Red): Smooth out noise to highlight broader trends, useful for confirming directional bias.

Formula: SMA(close, 20) ± 2 * StdDev(close, 20)

Volatility Comparison

When both bands expand together, it signals strong, multi-timeframe momentum.

A narrowing overlap (squeeze) suggests consolidation, often preceding breakouts.

Visual Clarity

Color-coded bands (blue/red) with semi-transparent fills to avoid chart clutter.

No repainting or lagging calculations—all values are derived from historical data.

How to Use This Script
Trading Applications
Trend Confirmation: Enter trades when price respects both bands (e.g., bounces off the lower bands in an uptrend).

Divergence Detection: Short-term band breaks out while long-term band remains flat, signaling potential reversals.

Volatility Breakouts: Price closing outside both bands indicates extreme momentum (fade or follow depending on strategy).

Customization
Adjust lengths (9 and 20) in inputs.

Modify deviation multipliers (default: 2.0) for sensitivity.

Chart Requirements
Clean Chart Example:

Symbol: BTCUSDT (or any liquid asset)

Timeframe: 15M (works on all timeframes)

No overlapping indicators—only price action and the two Bollinger Bands are visible.

Why This Script?
No Black-Box Calculations: Transparent, formula-based logic.

Multi-Timeframe Insight: Combines scalping and swing-trading contexts.

Rule-Based: Follows standard Bollinger Band principles with no arbitrary signals.

Compliance Notes
No external dependencies or required companion scripts.

Complete symbol/timeframe info included in published charts.

Description clarity: Explicitly explains calculations, use cases, and originality.
發行說明
Indicator Name:
Dual-Length Bollinger Bands (2-9 & 2-20) with Multi-Timeframe Volatility Analysis

Description:
This script enhances traditional Bollinger Bands by plotting two independent bands (lengths 2-9 and 2-20) on a single chart, providing a unique way to analyze volatility across different time horizons. Unlike standard implementations, this tool allows traders to compare short-term and long-term volatility dynamics simultaneously, using Simple Moving Averages (SMA) and ±2 standard deviations for consistency.

Originality & Methodology
Dual-Band Design

Fast Bands (2-9 Length, Blue): React quickly to price changes, ideal for identifying short-term overbought/oversold conditions or scalping opportunities.

Formula: SMA(close, 9) ± 2 * StdDev(close, 9)

Slow Bands (2-20 Length, Red): Smooth out noise to highlight broader trends, useful for confirming directional bias.

Formula: SMA(close, 20) ± 2 * StdDev(close, 20)

Volatility Comparison

When both bands expand together, it signals strong, multi-timeframe momentum.

A narrowing overlap (squeeze) suggests consolidation, often preceding breakouts.

Visual Clarity

Color-coded bands (blue/red) with semi-transparent fills to avoid chart clutter.

No repainting or lagging calculations—all values are derived from historical data.

How to Use This Script
Trading Applications
Trend Confirmation: Enter trades when price respects both bands (e.g., bounces off the lower bands in an uptrend).

Divergence Detection: Short-term band breaks out while long-term band remains flat, signaling potential reversals.

Volatility Breakouts: Price closing outside both bands indicates extreme momentum (fade or follow depending on strategy).

Customization
Adjust lengths (2-9 and 2-20) in inputs.

Modify deviation multipliers (default: 2.0) for sensitivity.

Chart Requirements
Clean Chart Example:

Symbol: XAUUSD (or any liquid asset)

Timeframe: 15M (works on all timeframes)

No overlapping indicators—only price action and the two Bollinger Bands are visible.
Example Chart (Optional: Add a simplified screenshot showing only the script’s output)

Why This Script?
No Black-Box Calculations: Transparent, formula-based logic.

Multi-Timeframe Insight: Combines scalping and swing-trading contexts.

Rule-Based: Follows standard Bollinger Band principles with no arbitrary signals.

Compliance Notes
No external dependencies or required companion scripts.

Complete symbol/timeframe info included in published charts.

Description clarity: Explicitly explains calculations, use cases, and originality.

Key Improvements:
Color Scheme:

Fast Bands (2-9): Bright Blue (#2962FF)

Slow Bands (2-20): Vibrant Red (#FF5252)

85% transparent fills for better visibility

Visual Enhancements:

Center lines now use cross style for clearer distinction

Slightly increased transparency for better price action visibility

Consistent 1px line width throughout

Optimized Colors:

Blue/Red combination provides maximum contrast

Colors chosen to work perfectly on both light and dark themes

No color blending issues between bands

Professional Formatting:

Clean code organization with clear sections

Proper indentation for readability

Descriptive variable names
發行說明
Indicator Name:
Double Bollinger Bands (2-9 & 2-20)

Description:
This indicator plots two sets of Bollinger Bands on a single chart for enhanced volatility and trend analysis:

Fast Bands (2-9 Length) – Voilet

More responsive to short-term price movements.

Useful for spotting quick reversals or scalping opportunities.

Slow Bands (2-20 Length) – Black

Smoother, trend-following bands for longer-term context.

Helps confirm broader market direction.

Both bands use the standard settings (2 deviations, SMA basis) for consistency. The transparent fills improve visual clarity while keeping the chart uncluttered.

Use Cases:
Trend Confirmation: When both bands expand together, it signals strong momentum.

Squeeze Alerts: A tight overlap suggests low volatility before potential breakouts.

Multi-Timeframe Analysis: Compare short-term vs. long-term volatility in one view.

How to Adjust:
Modify lengths (2-9 and 2-20) in the settings.

Change colors or transparency as needed.

Why Use This Script?
No Repainting – Uses standard Pine Script functions for reliability.

Customizable – Easy to tweak for different trading styles.

Clear Visuals – Color-coded bands with background fills for better readability.

Ideal For:
Swing traders, day traders, and volatility scalpers.

Combining short-term and long-term Bollinger Band strategies.
21 hours ago
Release Notes
Indicator Name:
Dual-Length Bollinger Bands (9 & 20) with Multi-Timeframe Volatility Analysis

Description:
This script enhances traditional Bollinger Bands by plotting two independent bands (lengths 9 and 20) on a single chart, providing a unique way to analyze volatility across different time horizons. Unlike standard implementations, this tool allows traders to compare short-term and long-term volatility dynamics simultaneously, using Simple Moving Averages (SMA) and ±2 standard deviations for consistency.

Originality & Methodology
Dual-Band Design

Fast Bands (9 Length, Blue): React quickly to price changes, ideal for identifying short-term overbought/oversold conditions or scalping opportunities.

Formula: SMA(close, 9) ± 2 * StdDev(close, 9)

Slow Bands (20 Length, Red): Smooth out noise to highlight broader trends, useful for confirming directional bias.

Formula: SMA(close, 20) ± 2 * StdDev(close, 20)

Volatility Comparison

When both bands expand together, it signals strong, multi-timeframe momentum.

A narrowing overlap (squeeze) suggests consolidation, often preceding breakouts.

Visual Clarity

Color-coded bands (blue/red) with semi-transparent fills to avoid chart clutter.

No repainting or lagging calculations—all values are derived from historical data.

How to Use This Script
Trading Applications
Trend Confirmation: Enter trades when price respects both bands (e.g., bounces off the lower bands in an uptrend).

Divergence Detection: Short-term band breaks out while long-term band remains flat, signaling potential reversals.

Volatility Breakouts: Price closing outside both bands indicates extreme momentum (fade or follow depending on strategy).

Customization
Adjust lengths (9 and 20) in inputs.

Modify deviation multipliers (default: 2.0) for sensitivity.

Chart Requirements
Clean Chart Example:

Symbol: BTCUSDT (or any liquid asset)

Timeframe: 15M (works on all timeframes)

No overlapping indicators—only price action and the two Bollinger Bands are visible.

Why This Script?
No Black-Box Calculations: Transparent, formula-based logic.

Multi-Timeframe Insight: Combines scalping and swing-trading contexts.

Rule-Based: Follows standard Bollinger Band principles with no arbitrary signals.

Compliance Notes
No external dependencies or required companion scripts.

Complete symbol/timeframe info included in published charts.

Description clarity: Explicitly explains calculations, use cases, and originality.
8 hours ago
Release Notes
Indicator Name:
Dual-Length Bollinger Bands (2-9 & 2-20) with Multi-Timeframe Volatility Analysis

Description:
This script enhances traditional Bollinger Bands by plotting two independent bands (lengths 2-9 and 2-20) on a single chart, providing a unique way to analyze volatility across different time horizons. Unlike standard implementations, this tool allows traders to compare short-term and long-term volatility dynamics simultaneously, using Simple Moving Averages (SMA) and ±2 standard deviations for consistency.

Originality & Methodology
Dual-Band Design

Fast Bands (2-9 Length, Blue): React quickly to price changes, ideal for identifying short-term overbought/oversold conditions or scalping opportunities.

Formula: SMA(close, 9) ± 2 * StdDev(close, 9)

Slow Bands (2-20 Length, Red): Smooth out noise to highlight broader trends, useful for confirming directional bias.

Formula: SMA(close, 20) ± 2 * StdDev(close, 20)

Volatility Comparison

When both bands expand together, it signals strong, multi-timeframe momentum.

A narrowing overlap (squeeze) suggests consolidation, often preceding breakouts.

Visual Clarity

Color-coded bands (blue/red) with semi-transparent fills to avoid chart clutter.

No repainting or lagging calculations—all values are derived from historical data.

How to Use This Script
Trading Applications
Trend Confirmation: Enter trades when price respects both bands (e.g., bounces off the lower bands in an uptrend).

Divergence Detection: Short-term band breaks out while long-term band remains flat, signaling potential reversals.

Volatility Breakouts: Price closing outside both bands indicates extreme momentum (fade or follow depending on strategy).

Customization
Adjust lengths (2-9 and 2-20) in inputs.

Modify deviation multipliers (default: 2.0) for sensitivity.

Chart Requirements
Clean Chart Example:

Symbol: XAUUSD (or any liquid asset)

Timeframe: 15M (works on all timeframes)

No overlapping indicators—only price action and the two Bollinger Bands are visible.

Why This Script?
No Black-Box Calculations: Transparent, formula-based logic.

Multi-Timeframe Insight: Combines scalping and swing-trading contexts.

Rule-Based: Follows standard Bollinger Band principles with no arbitrary signals.

Compliance Notes
No external dependencies or required companion scripts.

Complete symbol/timeframe info included in published charts.

Description clarity: Explicitly explains calculations, use cases, and originality.

Key Improvements:
Color Scheme:

Fast Bands (2-9): Bright Blue (#2962FF)

Slow Bands (2-20): Vibrant Red (#FF5252)

85% transparent fills for better visibility

Visual Enhancements:

Center lines now use cross style for clearer distinction

Slightly increased transparency for better price action visibility

Consistent 1px line width throughout

Optimized Colors:

Blue/Red combination provides maximum contrast

Colors chosen to work perfectly on both light and dark themes

No color blending issues between bands

Professional Formatting:

Clean code organization with clear sections

Proper indentation for readability

Descriptive variable names

免責聲明

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