OPEN-SOURCE SCRIPT
Bollinger Bands with 6 StdDev

Bollinger Bands indicator designed to display six customizable levels of standard deviation around a chosen moving average. The purpose of this indicator is to help traders identify dynamic price levels where the market might find support, resistance, or volatility extremes.
Timeframe: Default is daily, but it can be changed by the user.
Inputs
Length (default 20): The lookback period for calculating the moving average and standard deviation.
MA Type: User can choose between SMA, EMA, SMMA (RMA), WMA, or VWMA to define the Bollinger Band’s central line (basis).
Source: The input price (default is closing price).
Offset: Allows shifting the entire indicator forward or backward on the chart.
Adjustable Standard Deviations
The script allows up to six separate multipliers for the standard deviation:
0.5, 1.0, 1.5, 2.0, 2.5, and 3.0 (all customizable).
This makes the indicator more flexible than standard Bollinger Bands, which usually use just ±2 standard deviations. With multiple levels, traders can observe how price reacts at minor vs. major volatility zones.
Timeframe: Default is daily, but it can be changed by the user.
Inputs
Length (default 20): The lookback period for calculating the moving average and standard deviation.
MA Type: User can choose between SMA, EMA, SMMA (RMA), WMA, or VWMA to define the Bollinger Band’s central line (basis).
Source: The input price (default is closing price).
Offset: Allows shifting the entire indicator forward or backward on the chart.
Adjustable Standard Deviations
The script allows up to six separate multipliers for the standard deviation:
0.5, 1.0, 1.5, 2.0, 2.5, and 3.0 (all customizable).
This makes the indicator more flexible than standard Bollinger Bands, which usually use just ±2 standard deviations. With multiple levels, traders can observe how price reacts at minor vs. major volatility zones.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.