Поиск скриптов по запросу "bollingerband"
Indicator: MFI or RSI enclosed by Bollinger BandsIndicator allows choosing either MFI or RSI and draws a BB over it to identify oversold / overbought conditions. 
Oversold/Overbought breaches are highlighted using different colors for easy identification. Has helped me a lot during sudden pumps to identify the tops, hope you find a use for this. 
Trading Strategy based on BB/KC squeeze****  [Edit: New version (v02) posted, see the comments section for the code *****
Simple strategy. You only consider taking a squeeze play when both the upper and lower Bollinger Bands go inside the Keltner Channel. When the Bollinger Bands (BOTH lines) start to come out of the Keltner Channel, the squeeze has been released and a move is about to take place. 
I have added more support indicators -- I highlight the bullish / bearish KC breaches (using GREEN/RED crosses) and a SAR to see where price action is trending. 
Appreciate any feedback. Enjoy!
Color codes for v02: 
----------------------------
When both the upper and lower Bollinger Bands go inside the Keltner Channel, the squeeze is on and is highlighted in RED.  
When the Bollinger Bands (BOTH lines) start to come out of the Keltner Channel, the squeeze has been released and is highlighted in GREEN. 
When one of the Bollinger Bands is out of Keltner Channel, no highlighting is done (this means, the background color shows up, so don't get confused if you have RED/GREEN in your chart's bground :))
Color codes for v01:
----------------------------
When both the upper and lower Bollinger Bands go inside the Keltner Channel, the squeeze is on and is highlighted in YELLOW.  
When the Bollinger Bands (BOTH lines) start to come out of the Keltner Channel, the squeeze has been released and is highlighted in BLUE. 
OGT Bollinger Bandwidth IndicatorWhat is the OGT Bollinger Bandwidth Indicator? 
The Bollinger Bands indicator is one of the most popular technical trading indicators. One of the applications of the Bollinger Bands indicator is when an instrument is in a state of low/high volatility. The OGT Bollinger Bandwidth Indicator measures the percentage distance between the upper and lower Bollinger bands to visually display periods of low/high volatility. 
The difference between this indicator and other bandwidth indicators, is that the user can define a percentage level where if the indicator reading is above that level the instrument is considered to be in high volatility. If the indicator reading is below this level, it's considered to be low volatility. This is visually displayed on the indicator (default - Red = low volatility / Green = high volatility).
 How to select the right percentage level? 
This indicator has a built in black line which shows the lowest indicator reading for the past 100 bars. This gives you insight on where you should be placing your percentage level for that instrument and time frame. You will need to adjust the percentage level when you select a new time frame as the Bollinger Band levels will be different.
 How this Indicator can help you trade profitably? 
As the saying goes - periods of low volatility is followed by period of high volatility. The OGT Bollinger Bandwidth Indicator allows instantly see and watch for periods of low volatility and capitalise when the tide turns. This is not a direction indicator but gives you an early warning sign that a big move is coming. Using other technical indicators such as moving averages / support and resistance can help you with the direction.
Bollinger Bands Pro : Hawk-Eye (by ImanPJN)Bollinger Bands Pro: Hawk Eye / is a professional version of the Bollinger Band Indicator that uses two bands instead of one. This is the second band I call the upper and lower middle band.
Sometimes you see that the candles are rejected from parts of the band and you do not know the real reason.
The real reason is the middle band, which is a secret line that we show you in Hawk eye and give you a professional and complete view of the trend and momentum of the trend.
This important line gives you the dynamic support and resistance points that were previously hidden from you.
The line also allows traders to pinpoint their entry and exit points, as well as notice that trend strengths or trend momentum are being lost.
Now we want to discuss the trading methods and strategies of this indicator, three main strategies that should be considered, the first is following the trend and the second is breaking the line And third is the Bollinger Bands divergences with the "BB %B" oscillator.
1 - Following the Trend :
You can follow the trend and when a good downtrend or uptrend is formed, enter the trade every time candles hits the middle band and bounces back and you can hold the position it until the middle band or baseline is broken .
   
 
  
2 - Breaking the Line :
When the middle band or baseline as our dynamic trend line is broken with a complete candlestick, we can close the trade or trade the reverse trend, but we recommend that you do not use trend reversal signals if you do not have enough skills.
   
 
3 - Bollinger Bands divergences :
We can also use the Bollinger Bands and the BB Percentage Index to find bullish and bullish divergence or overbought and oversold points. But it requires more mastery and research on both indicators
 
  
Coded by Iman Pajand in Partnership with @BITEXGroup
K's Volatility BandsVolatility bands come in all shapes and forms contrary to what is believed. Bollinger bands remain the principal indicator in the volatility bands family. K's Volatility bands is an attempt at optimizing the original bands. Below is the method of calculation:
* We must first start by calculating a rolling measure based on the average between the highest high and the lowest low in the last specified lookback window. This will give us a type of moving average that tracks the market price. The specificity here is that when the market does not make higher highs nor lower lows, the line will be flat. A flat line can also be thought of as a magnet of the price as the ranging property could hint to a further sideways movement.
* The K’s volatility bands assume the worst with volatility and thus will take the maximum volatility for a given lookback period. Unlike the Bollinger bands which will take the latest volatility calculation every single step of time, K’s volatility bands will suppose that we must be protected by the maximum of volatility for that period which will give us from time to time stable support and resistance levels. 
Therefore, the difference between the Bollinger bands and K's volatility bands are as follows:
* Bollinger Bands' formula calculates a simple moving average on the closing prices while K's volatility bands' formula calculates the average of the highest highs and the lowest lows.
* Bollinger Bands' formula calculates a simple standard deviation on the closing prices while K's volatility bands' formula calculates the highest standard deviation for the lookback period.
Applying the bands is similar to applying any other volatility bands. We can list the typical strategies below:
*  The range play strategy : This is the usual reversal strategy where we buy whenever the price hits the lower band and sell short whenever it hits the upper band.
*  The band re-entry strategy : This strategy awaits the confirmation that the price has recognized the band and has shaped a reaction around it and has reintegrated the whole envelope. It may be slightly lagging in nature but it may filter out bad trades.
*  Following the trend strategy : This is a controversial strategy that is the opposite of the first one. It assumes that whenever the upper band is surpassed, a buy signal is generated and whenever the lower band is broken, a sell signal is generated.
*  Combination with other indicators : The bands can be combined with other technical indicators such as the RSI in order to have more confirmation. This is however no guarantee that the signals will improve in quality.
*  Specific strategy on K’s volatility bands : This one is similar to the first range play strategy but it adds the extra filter where the trade has a higher conviction if the median line is flat. The reason for this is that a flat line means that no higher highs nor lower lows have been made and therefore, we may be in a sideways market which is a fertile ground for mean-reversion strategies.
Stochastic Bollinger BandsThis indicator started off as a bit of an experiment, but it ended up looking quite useful.
It plots closing price (which can be changed) in relation to the bollinger bands upper and lower bands. This relationship is then run through a Stochastic function much like RSI is with StochasticRSI.
This plot line is smoothed with the K Smoothing value in the settings, and then this plot line is smoothed again with he D Smoothing value to give a signal line.
When the plot lines are outside the horizontal upper and lower limit lines, then this indicates that price is outside the bollinger bands. This can indicate entry and exit signals.
In the background, there is an area plotting a stochastic version of the Bollinger Band width. This would show periods of high and low volatility as it relates to previous volatility. 
The stochastic length for the width is set to be very long (144 periods) in order to encapsulate a long range of values to compare to.
Default Settings:
==============
Source:  The data point in which to compare to the upper and lower Bollinger Bands - set to close.
BB Length: The length in periods to generate the moving average used for the bands - set at 20 periods.
Mult:  This is the multiplier used in the calculations for the bands - set at 2.
BB Width Stochastic Length:  This is how far back it looks to compare the current width of the bands to previous widths - set at 144 periods..
BB Stochastic Length:  This is how far back to compare closing price in relation to the bands - set at 14 periods..
K Smoothing:  This is used to smooth the Stochastic Bollinger band value - set at 3 periods.
D Smoothing: This is a moving average of the smoothed K value in order to provide a signal line - set at 3 periods..
Moving Average Type: This allows you to use either a Simple moving average or an Exponential moving average - set for SMA.
------------------------------------------------------------------------------------------------
Kindest Regards 
Created 2018 - by @Squiggles#8806 
LTC Tip Jar: LX4bUBdjiRPsagUbZoAczSGgDC4YqTJL7w 
Profit Trailer Feeder affiliate link: cryptoprofitbot.com
Generalized Bollinger Bands %B And Bandwidth (Tartigradia)Bollinger Band is simply a representation of the rolling average of price and its standard deviation around the average (called the "basis").
This indicator generalizes the Bollinger Band by implementing many different equations to calculate the Bollinger Bands beyond the standard deviation and sma, and then plot the %B (where the current price falls inside the Bollinger Band), Bandwidth (size of the Bollinger Band) as well as the Bollinger Band itself and a reproduction of the OHLC price candles in a separate pane.
Whereas other Bollinger Bands indicators often just change the basis but not the stdev calculation, the correct way to change the basis is to also change it inside the stdev calculation.
Advanced features such as temporal discounting (ie, newer bars can have more weights), median absolute deviation and multiple sigma bands (eg, 3-sigma) are available.
Up to 3 different Bollinger Bands can be displayed, and the background can be highlighted when price is overbought/oversold (beyond the Bollinger Band of choice). Tip: BB3, which is the bollinger band with standard deviation of 3, which represents 99% of observed values in the lookback period, is a good choice to highlight overbought/oversold conditions.
Three "Sentiment Bars" are provided to see at a glance the sentiments on the price action relative to the Bollinger Bands as reflected by the %B value.
Usage:
 
  Use the %B as a measure of sentiment: bullish if > 0.5, bearish if < 0.5. You can use the Sentiment Bars at the bottom for a quick reference: aqua if bullish, red if bearish, gray if undefined (too close to the middle line).
  Use the bandwidth as a measure of volatility: higher is more volatile, lower is less.
  When overbought, it can be a good time to sell/short. Use a higher Bollinger Band Multiplier such as 3 or more to reduce false positives.
  When oversold, it can be a good time to buy/long. Use a higher Bollinger Band Multiplier such as 3 or more to reduce false positives.
  Consider setting a much tighter lookback period of 4 as recommended in backtested works (en.wikipedia.org), use zlma instead of sma, and finally set a higher timeframe for the Bollinger Bands than the one you are currently studying. Then, the Bollinger Bands can help in detecting overbought and oversold regions (price going "out of bands").
 
Note that I tried to automate the setting of a higher timeframe, but for some reason the output is different when I manually do it using request.security() than when it's in indicator(timeframe=""). If someone has any suggestion as to why it happens, please let me know! (You can try it for yourself by uncommenting the auto_timeframe parameter line).
Bollinger Band ToolkitBollinger Band Toolkit 
An advanced, adaptive Bollinger Band system for traders who want more context, precision, and edge.
This indicator expands on the classic Bollinger Bands by combining statistical and volatility-based methods with modern divergence and squeeze detection tools. It helps identify volatility regimes, potential breakouts, and early momentum shifts — all within one clean overlay.
 🔹 Core Features 
 1. Adaptive Bollinger Bands (σ + ATR) 
Classic 20-period bands enhanced with an ATR-based volatility adjustment, making them more responsive to true market movement rather than just price variance.
Reduces “overreacting” during chop and avoids bands collapsing too tightly during trends.
 2. %B & RSI Divergence Detection 
🟢 Green dots: Positive %B divergence — price makes a lower low, but %B doesn’t confirm (bullish).
🔴 Red dots: Negative %B divergence — price makes a higher high, but %B doesn’t confirm (bearish).
✚ Red/green crosses: RSI divergence confirmation — momentum fails to confirm the price’s new extreme.
These signals highlight potential reversal or slowdown zones that are often invisible to the naked eye.
 3. Bollinger Band Squeeze (with Volume Filter) 
Yellow squares (■) show periods when Bollinger Bands are at their narrowest relative to recent history.
Volume confirmation ensures the squeeze only triggers when both volatility and participation contract.
Often marks the “calm before the storm” — breakout potential zones.
 4. Multi-Timeframe Breakout Markers 
Optionally displays breakouts from higher or lower timeframes using different colors/symbols.
Lets you see when a higher timeframe band break aligns with your current chart — a strong trend continuation signal.
 5. Dual- and Triple-Band Visualization (±1σ, ±2σ, ±3σ) 
Optional inner (±1σ) and outer (±3σ) bands provide a layered volatility map:
Price holding between ±1σ → stable range / mean-reverting behavior
Price riding near ±2σ → trending phase, sustained momentum
Price touching or exceeding ±3σ → volatility expansion or exhaustion zone
This triple-band layout visually distinguishes normal movement from statistical extremes, helping you read when the market is balanced, expanding, or approaching its limits.
 ⚙️ Inputs & Customization 
Choose band type (SMA/EMA/SMMA/WMA/VWMA)
Adjust deviation multiplier (σ) and ATR multiplier
Toggle individual features (divergence dots, squeeze markers, inner bands, etc.)
Multi-timeframe and colour controls for advanced users
 🧠 How to Use 
Watch for squeeze markers followed by a breakout bar beyond ±2σ → volatility expansion signal.
Combine divergence dots with RSI or price structure to anticipate slowdowns or reversals.
Confirm direction using multi-timeframe breakouts and volume expansion.
 💬 Why It Works 
This toolkit transforms qualitative chart reading (tight bands, hidden divergence) into quantitative, testable conditions — giving you objective insights that can be backtested, coded, or simply trusted in live setups.
Bollinger Bands ETSOverview 
 Bollinger Bands ETstyle (BB ETS)  is an advanced volatility and breakout detection indicator, building upon the classic Bollinger Bands. This script introduces adaptive ATR-based band width smoothing and clear squeeze detection, making it a versatile tool for traders seeking more responsive and actionable volatility analysis.
 Features 
 Dual Bollinger Bands:  Plots both standard and outer bands around a configurable moving average, allowing visualization of typical and extreme volatility ranges.
 ATR-Based Band Smoothing (Optional):  When enabled, the bands automatically widen during low-volatility periods using the Average True Range (ATR), reducing false signals and making the bands more adaptive.
 Squeeze Detection (Optional):  Highlights periods when the bands contract below a user-defined threshold, signaling potential breakout setups. Squeeze periods are visually marked with a background highlight for easy identification.
 Customizable Settings:  Users can adjust band length, standard deviation multipliers, ATR parameters, and squeeze thresholds. Both ATR smoothing and squeeze detection can be toggled on or off.
 Clean Chart Output:  The indicator overlays directly on price with clear, distinguishable visuals for all features.
 How It Works 
The indicator calculates a moving average (basis) and plots upper and lower bands at user-selected standard deviations.
If ATR smoothing is enabled, the band width expands by a multiple of the ATR, adapting to real-time volatility.
The script computes the relative band width ("bandwidth"). When this falls below your chosen threshold, the background is highlighted to indicate a "squeeze"-a period of reduced volatility that often precedes breakouts.
 How to Use 
 Trend & Volatility Analysis:  Use the bands to identify overbought/oversold conditions and current market volatility. Price touching or crossing the outer bands may signal trend exhaustion or continuation.
 Breakout Anticipation:  Watch for background highlights indicating a squeeze. These periods suggest the market is coiling for a potential significant move.
 Adaptive Sensitivity:  Enable ATR smoothing to keep bands relevant during both calm and volatile markets, reducing false signals in low-volatility conditions.
 Customization:  Adjust all parameters in the settings to match your trading style and the asset’s behavior.
 Limitations 
The indicator is designed for standard price charts and may not perform as intended on non-standard chart types (such as Renko or Heikin Ashi).
As with all technical tools, best results are achieved when used alongside other forms of analysis.
 Summary 
 Bollinger Bands ETstyle (BB ETS)  offers a modern, adaptive approach to volatility and breakout analysis by combining classic bands with ATR-based smoothing and clear squeeze visualization. It is suitable for trend-following and breakout strategies, and requires no additional scripts-simply apply to your chart and adjust the settings as needed.
ViVen-Multi Time Frame Bollinger Band StrategyThis indicator created to identify the strong Support and Resistance levels based on the Bollinger Bands. When two different time frame Bollinger Bands are travelling together then its a strong Support or Resistance Levels.
I have added 5 Min, 15 Min, 30 Min, 1 Hr and 1 Day time frame Bollinger Bands in one Chart. You can select and combine whichever the TF you want.
Default values considered - Period - 20 and Std.Dev is 2
You can on/off the indicator based on the requirement.
 Trade plan: 
 
 BUY - When price comes near to the Bottom Bollinger Band level (look for candle confirmation is plus). If multiple Bollinger bands travels together then is Strong Support. (Exit if Price Breaks down the BB)
 
 
 SELL - When price reaches the Upper Bollinger Band level (look for candle confirmation is plus). If multiple Bollinger bands travels together then is Strong Support. (Exit if Price Breaks Up the BB)
 
 
 Middle Line - is the 20 SMA line
 
When the Gap between Upper and Lower Band is narrow then we can expect a trending movement soon.
Simple Bollinger Band Width PercentileI'm a big fan of The_Caretaker's BBWP and wanted to add it as a volatility indicator to some of my scripts, but since it is over 100 lines of code (plus spacing and comments) I wanted to find if there was a simpler way to get comparable results. SBBWP uses Pine 5 built in functions that I don't believe were available when The_Caretaker wrote BBPW. The main limitations compared to The_Caretaker's version is that it can only use SMA as its Basis Type and the colors are also not as pretty. I have not included alerts or scale lines since I'm not trying to replace BBWP, just give a simple example that you can easily build in to your scripts.
Full credit and respect to The_Caretaker!
Bollinger Band Width PercentileIntroducing the  Bollinger Band Width Percentile 
 Definitions : 
 Bollinger Band Width Percentile  is derived from the Bollinger Band Width indicator.
It shows the percentage of bars over a specified lookback period that the Bollinger Band Width was less than the current Bollinger Band Width.
 Bollinger Band Width  is derived from the Bollinger Bands® indicator.
It quantitatively measures the width between the Upper and Lower Bands of the Bollinger Bands.
 Bollinger Bands®  is a volatility-based indicator.
It consists of three lines which are plotted in relation to a security's price.
The Middle Line is typically a Simple Moving Average.
The Upper and Lower Bands are typically 2 standard deviations above, and below the SMA (Middle Line).
 Volatility  is a statistical measure of the dispersion of returns for a given security or market index, measured by the standard deviation of logarithmic returns.
 The Broad Concept : 
Quoting Tradingview specifically for commonly noted limitations of the BBW indicator which I have based this indicator on....
“ Bollinger Bands Width (BBW) outputs a Percentage Difference between the Upper Band and the Lower Band. 
This value is used to define the narrowness of the bands.
What needs to be understood however is that a trader cannot simply look at the BBW value and determine if the Band is truly narrow or not. 
The significance of an instruments relative narrowness changes depending on the instrument or security in question. 
What is considered narrow for one security may not be for another. 
What is considered narrow for one security may even change within the scope of the same security depending on the timeframe. 
In order to accurately gauge the significance of a narrowing of the bands, a technical analyst will need to research past BBW fluctuations and price performance to increase trading accuracy. ”
Here I present the Bollinger Band Width Percentile as a refinement of the BBW to somewhat overcome the limitations cited above.
Much of the work researching past BBW fluctuations, and making relative comparisons is done naturally by calculating the Bollinger Band Width Percentile.
This calculation also means that it can be read in a similar fashion across assets, greatly simplifying the interpretation of it.
 Plotted Components of the Bollinger Band Width Percentile indicator : 
 
 Scale High
 Mid Line
 Scale Low
 BBWP plot 
 Moving Average 1
 Moving Average 2
 Extreme High Alert
 Extreme Low Alert
 
 Bollinger Band Width Percentile Properties: 
 BBWP Length 
The time period to be used in calculating the Moving average which creates the Basis for the BBW component of the BBWP.
 Basis Type 
The type of moving average to be used as the Basis for the BBW component of the BBWP.
 BBWP Lookback 
The lookback period to be used in calculating the BBWP itself.
 BBWP Plot settings 
The BBWP plot settings give a choice between a user defined solid color, and a choice of "Blue Green Red", or "Blue Red" spectrum palettes.
 Moving Averages 
Has 2 Optional User definable and adjustable moving averages of the BBWP.
 Visual Alerts 
Optional User adjustable High and low Signal columns.
 How to read the BBWP : 
 
 A BBWP read of 95 % ... means that the current BBW level is greater than 95% of the lookback period.
 A BBWP read of 5 % .... means that the current BBW level is lower than 95% of the lookback period.
 
 Proposed interpretations : 
 
 When the BBWP gets above 90 % and particularly when it hits 100% ... this can be a signal that volatility is reaching a maximum and that a macro High or Low is about to be set.
 When the BBWP gets below 10 % and particularly when it hits 0% ...... this can be a signal that volatility is reaching a minimum and that there could be a violent range breakout into a trending move.
 When the BBWP hits a low level < 5 % and then gets above its moving average ...... this can be an early signal that a consolidation phase is ending and a trending move is beginning.
 When the BBWP hits a high level > 95 % and then falls below its moving average ... this can be an early signal that a trending move is ending and a consolidation phase is beginning.
 
 Essential knowledge : 
The BBWP was designed with the daily timeframe in mind, but technical analysists may find use for it on other time frames also.
High and Low BBWP readings do not entail any direction bias.
 
 Deeper Concepts : 
In finance, “mean reversion” is the assumption that a financial instrument's price will tend to move towards the average price over time.
If we apply that same logic to volatility as represented here by the Bollinger band width percentile, the assumption is that the Bollinger band width percentile will tend to contract from extreme highs, and expand from extreme lows over time corresponding to repeated phases of contraction and expansion of volatility.
It is clear that for most assets there are periods of directional trending behavior followed by periods of “consolidation” ( trading sideways in a range ). 
This often ends with a tightening range under reducing volume and volatility ( popularly known as “the squeeze” ).
The squeeze typically ends with a “breakout” from the range characterized by a rapid increase in volume, and volatility when price action again trends directionally, and the cycle repeats.
 Typical Use Cases : 
The Bollinger Band Width Percentile may be especially useful for Options traders, as it can provide a bias for when Options are relatively expensive, or inexpensive from a Volatility (Vega) perspective. 
When the Bollinger Band Width Percentile is relatively high ( 85 percentile or above ) it may be more advantageous to be a net seller of Vega.
When the Bollinger Band Width Percentile is relatively low ( 15 percentile or below ) it may be advantageous to be net long Vega.
Here we examine a number of actionable signals on BTCUSD daily timeframe using the BBWP and a momentum oscillator ( using the TSI here but can equally be used with Bollinger bands, moving averages, or the traders preferred momentum oscillator ).
In this first case we will examine how a spot trader and an options trader could each use a low BBWP read to alert them to a good potential trade setup.
note: using a period of 30 for both the Bollinger bands and the BBWP period ( approximately a month ) and a BBWP lookback of 350 ( approximately a year )
  
As we see the Bollinger Bands have gradually contracted while price action trended down and the BBWP also fell consistently while below its moving average ( denoting falling volatility ) down to an extremely low level <5% until it broke above its moving average along with a break of range to the upside ( signaling the end of the consolidation at a low level and the beginning of a new trending move to the upside with expanding volatility).
In this next case we will continue to follow the price action presuming that the traders have taken or locked in profit at reasonable take profit levels from the previous trade setup.
  
Here we see the contraction of the Bollinger bands, and the BBWP alongside price action breaking below the BB Basis giving a warning that the trending move to the upside is likely over.
We then see the BBWP rising and getting above its moving average while price action fails to get above the BB Basis, likewise the TSI fails to get above its signal line and actually crosses below its zeroline.
The trader would normally take this as a signal that the next trending move could be to the downside.
The next trending move turns out to be a dramatic downside move which causes the BBWP to hit 100% signaling that volatility is likely to hit a maximum giving good opportunities for profitable trades to the skilled trader as outlined.
 Limitations : 
Here we will look at 2 cases where blindly taking BBWP signals could cause the trader to take a failed trade.
In this first example we will look at blindly taking a low volatility options trade
  
Low Volatility and corresponding low BBWP levels do not automatically mean there has to be expansion immediately, these periods of extreme low volatility can go on for quite some time.
In this second example we will look at blindly taking a high volatility spot short trade
  
High volatility and corresponding high BBWP levels do not automatically mean there has to be a macro high and contraction of volatility immediately, these periods of extreme high volatility can also go on for quite some time, hence the famous saying "The trend is your friend until the end of the trend" and lesser well known, but equally valid saying "never try to short the top of a parabolic blow off top"
Markets are variable and past performance is no guarantee of future results, this is not financial advice, I am not a financial advisor.
 Final thoughts 
The BBWP is an improvement over the BBW in my opinion, and is a novel, and useful addition to a Technical Analysts toolkit.
It is not a standalone indicator and is meant to be used in conjunction with other tools for direction bias, and Good Risk Management to base sound trades off.
John Bollinger has suggested using Bolliger bands, and its related indicators with two or three other non-correlated indicators that provide more direct market signals. 
He believes it is crucial to use indicators based on different types of data. 
Some of his favored technical techniques are moving average divergence/convergence (MACD), on-balance volume and relative strength index (RSI).
 Thanks 
Massive respect to John Bollinger, long-time technician of the markets, and legendary creator of both the Bollinger Bands® in the 1980´s, and the Bollinger band Width indicator in 2010 which this indicator is based on.
His work continues to inspire, decades after he brought the original Bollinger Bands to the market.
Much respect also to Eric Crown who gave me the fundamental knowledge of Technical Analysis, and Options trading.
Greedy DCA█  OVERVIEW 
Detect price crashes in volatile conditions. This is an indicator for a greedy dollar cost average (DCA) strategy. That is, for people who want to repeatedly  buy  an asset over time when its price is crashing.
█  CONCEPTS 
 
  Price crashes are indicated if the price falls below one or more of the 4 lower Bollinger Bands which are calculated with increasing multipliers for the standard deviation.
  In these conditions, the price is far below the average. Therefore they are considered good buying opportunities.
  No buy signals are emitted if the Bollinger Bands are tight, i.e. if the bandwidth (upper -lower band) is below the value of the moving average multiplied with a threshold factor. This ensures that signals are only emitted if the conditions are  highly  volatile.
  The Bollinger Bands are calculated based on the daily candles, irrespective the chart time frame. This allows to check the strategy on lower time frames
 
Bollinger Bands Breakout Oscillator [LuxAlgo]The Bollinger Bands Breakout Oscillator is an oscillator returning two series quantifying the significance of breakouts between the price and the extremities of the Bollinger Bands indicator.
 Settings 
 
 Length: Period of the Bollinger Bands indicator
 Mult: Controls the width of the Bollinger Bands
 Src: Input source of the indicator
 
 Usage 
  
Each series is calculated by summing the distance between price and a respective Bollinger Bands extremity in the case price is outside this extremity and divided by the sum of the absolute distance between price and a respective extremity. This sum is done over the most recent  Length  bars.
Bullish breakouts are represented by the green areas of the indicator, while bearish breakouts are represented by the red areas of the indicator.
The oscillator can determine the presence of an uptrend when the bullish area is superior to the bearish area, while a downtrend is indicated by a bearish area being superior to the bullish one. The significance of the breakout is determined by the amplitude of each area, with higher amplitudes indicating more significant breakouts or strong trends.
Using higher  Mult  values would naturally return wider bands, which would induce less frequent breakouts, this would be highlighted by the oscillator.
  
In the chart above we can see the oscillator using a multiplicative factor of 2.
Compare Crypto Bollinger Bands//This is not financial advice, I am not a financial advisor.
//What are volatility tokens?
//Volatility tokens are ERC-20 tokens that aim to track the implied volatility of crypto markets. 
//Volatility tokens get their exposure to an asset’s implied volatility using FTX MOVE contracts.
//There are currently two volatility tokens: BVOL and IBVOL. 
//BVOL targets tracking the daily returns of being 1x long the implied volatility of BTC  
//IBVOL targets tracking the daily returns of being 1x short the implied volatility of BTC.
/////////////////////////////////////////////////////////////////
CAN USE ON ANY CRYPTO CHART AS  BINANCE:BTCUSD  is still the most dominant crypto, positive volatility for BTC is positive for all. 
/////////////////////////////////////////////////////////////////
//The Code.
//The blue line (ChartLine) is the current chart plotted on in Bollinger 
//The red line (BVOLLine) plots the implied volatility of BTC  
//The green line (IBVOLLine) plot the inverse implied volatility of BTC  
//The orange line (TOTALLine) plots how well the crypto market is performing on the Bolling scale. The higher the number the better.
//There are 2 horizontal lines, 0.40 at the bottom & 0.60 at the top
/////////To Buy
//1. The blue line (ChartLine) must be higher than the green line (IBVOLLine)
//2. The green line (IBVOLLine) must be higher than the red line (BVOLLine)
//3. The red line (BVOLLine) must be less than 0.40 // This also acts as a trendsetter
//4. The orange line (TOTALLine) MUST be greater than the red line. This means that the crypto market is positive.
//5.IF THE BLUE LINE  (ChartLine) IS GREATER THAN THE ORANGE LINE (TOTALLine) IT MEANS YOUR CRYPTO IS OUTPERFOMING THE MARKET {good for short term explosive bars}
//6. If the orange line (TOTALLine) is higher than your current chart, say BTCUSD. And BTC is going up to. It just means BTC is going up slowly. it's fine as long as they are moving in the same position.
//5. I use this on the 4hr, 1D, 1W timeframes
///////To Exit
//1.If the blue line (ChartLine) crosses under the green line (IBVOLLine) exit{ works best on 4hr,1D, 1W to avoid fakes}
//2.If the red line crosses over the green line when long. {close positions, or watch positions} It means negative volatility is wining 
Bollinger Bands Technic + AlertReferred to the book "Bollinger on Bollinger Bands"
The best use of BB is to wait for squezze and breakout to capture the start of the trend.
Here the signal and target profit.
1. Long Signal when the close crosses above the upper BB and the Bandwidth of current bar exceeds 1.25 times of the previous bar (Volatility expands). : Green Triangle Up
2. Short Signal when the close crosses down the lower BB and the the Bandwidth of current bar exceeds 1.25 times of the previous bar (Volatility expands). : Red Triangle Down
3, Long TP when the upper BB turns down. : X cross Red
4. Short TP when the lower BB turns up. : X cross Purple
You can adjust any input of BB as well as how many times bandwidth changes from previous period.
I filter out the to high to buy signal by using ADX, if ADX over 50, the buy signal will be omitted.
As well as the TP signal , If the ADX is to low <35 , meaning it's has more room to go. the TP signal to be omitted.
Anyway , user can adjust all of this sensitivity.
As this is the trend following indicator, you will experience the bad signal during the sideways. That's life.
This is the semi discretionary system. You can use as a guideline along side with your other methods and money management.
Thank you!
Tanakorn Koomrampai CMT, CFTe
Luckscout's Double Bollinger Bands StrategyLong Trade Setups: 
To go long (to buy), you have to wait for one of the candlesticks to close above the BB upper band. (background color is green)
 Short Trade Setups: 
To go short (to sell), you have to wait for one of the candlesticks to close below the BB lower band. (background color is red)
 How To Maximize Your Profit? 
As I explained above, this trading system is good in catching the trends. Therefore, you’d better to take the advantage of the strong movements and maximize your profit.
When there is a strong trade setup, you can also take two positions with the same stop loss, when there is a trade setup based on the Double Bollinger Bands trading system. Set a 2 x SL target for the first position, and no target for the second one. If the first position hits the target, move the second’s position stop loss to breakeven and hold it  (TLDR : Hold a sell as long as background is red) 
In case of a long position, hold the second position as long as the candlesticks form between the BB1 and BB2 upper bands, or above the Bollinger Middle Band. Close the second position when candlesticks start crossing the BB1 upper bands, or when one of the candlesticks breaks below the Bollinger Middle Band .  (TLDR : Holda buy as long as background is green) 
(Poshtrader) Bollinger Band SqueezeThe Bollinger Band Squeeze is a trading strategy designed to find consolidations with decreasing volatility. In its simplest form, this strategy is neutral and the ensuing break can be up or down. Traders, therefore, must employ other aspects of technical analysis to formulate a trading bias to act before the break or confirm the break. Acting before the break will improve the risk-reward ratio.
Bollinger Bear Sniper/StudyThis is a simple study with buys and sells alerts. This study uses Bollinger Bands to identify strong candles, buys in the middle of candle and sells on the close of candle without holding any position longer than the period of the candle. This is for those who want to make small profit or loss and move on rather than hodling in down trend market. With this approach, bags and hodling are avoided. You either gain on each candle or lose. When your gains are more than your loses then you are in good business. 
Since buys are made on candles that have shown strong upward movement and sells on the close of the same candle, loses or completely minimized. This ensures that higher percentage of the transactions result in profit. This works best when use on 30 minutes or above candles.
Use it at your own risk we are NOT responsible. 
John Bollinger's Bollinger BandsJapanese below / 日本語説明は下記
This indicator replicates how John Bollinger, the inventor of Bollinger Bands, uses Bollinger Bands, displaying Bollinger Bands, %B and Bandwidth in one indicator with alerts and signals.
Bollinger Bands is created by John Bollinger in 1980s who is an American financial trader and analyst. He introduced %B and Bandwidth 30 years later.
 🟦 What's different from other Bollinger Bands indicator? 
Unlike the default Bollinger Bands or other custom Bollinger Bands indicators on TradingView, this indicator enables to display three Bollinger Bands tools into a single indicator with signals and alerts capability.
You can plot the classic Bollinger Bands together with either %B or Bandwidth or three tools altogether which requires the specific setting(see below settings).
This makes it easy to quantitatively monitor volatility changes and price position in relation to Bollinger Bands in one place.
 🟦 Features: 
 
 Plots Bollinger Bands (Upper, Basis, Lower) with fill between bands.
 
 
 Option to display %B or Bandwidth with Bollinger Bands.
 
 
 Plots highest and lowest Bandwidth levels over a customizable lookback period.
 
 
 Adds visual markers when Bandwidth reaches its highest (Bulge) or lowest (Squeeze) value.
 
 
 Includes ready-to-use alert conditions for Bulge and Squeeze events.
 
📈Chart
Green triangles and red triangles in the bottom chart mark Bulges and Squeezes respectively.
  
 🟦 Settings: 
 
 Length: Number of bars used for Bollinger Band middleline calculation.
 
 
 Basis MA Type: Choose SMA, EMA, SMMA (RMA), WMA, or VWMA for the midline.
 
 
 StdDev: Standard deviation multiplier (default = 2.0).
 
 
 Option: Select "Bandwidth" or "%B" (add the indicator twice if you want to display both).
 
 
 Period for Squeeze and Bulge: Lookback period for detecting the highest and lowest Bandwidth levels.(default = 125 as specified by John Bollinger )
 
 
 Style Settings: Colors, line thickness, and transparency can be customized.
 
📈Chart
The chart below shows an example of three Bollinger Bands tools: Bollinger Band, %B and Bandwidth are in display.
To do this, you need to add this indicator TWICE where you select %B from Option in the first addition of this indicator and Bandwidth from Option in the second addition.
  
 🟦 Usage: 
 🟠Monitor Volatility: 
Watch Bandwidth values to spot volatility contractions (Squeeze) and expansions (Bulge) that often precede strong price moves.
John Bollinger defines Squeeze and Bulge as follows; 
 Squeeze: 
The lowest bandwidth in the past 125 period, where trend is born.
 
Bulge:  
The highest bandwidth in the past 125 period where trend is going to die. 
According to John Bollinger, this 125 period can be used in any timeframe.
📈Chart1
Example of Squeeze
You can see uptrends start after squeeze(red triangles) 
  
📈Chart2
Example of Bulge
You can see the trend reversal from downtrend to uptrends at the bulge(green triangles)
  
📈Chart3
Bulge DOES NOT NECESSARILY mean the beginning of a trend in opposite direction.
For example, you can see a bulge happening in the right side of the chart where green triangles are marked. Nevertheless, uptrend still continues after the bulge.
In this case, the bulge marks the beginning of a consolidation which lead to the continuation of the trend. It means that a phase of the trend highlighted in the light blue box came to an end.
  
Note: light blue box is not drawn by the indicator.
Like other technical analysis methods or tools, these setups do not guarantee birth of new trends and trend reversals. Traders should be carefully observing these setups along with other factors for making decisions.
 🟠Track Price Position: 
Use %B to see where price is located in relation to the Bollinger Bands.
If %B is close to 1, the price is near upper band while %B is close to 0, the price is near lower band.
 🟠Set Alerts: 
Receive alerts when Bandwidth hits highest and lowest values of bandwidth, helping you prepare for potential breakout, ending of trends and trend reversal opportunities.
 🟠Combine with Other Tools: 
This indicator would work best when combined with price action, trend analysis, or
market environmental analysis.
—————————————————————————————
このインジケーターはボリンジャーバンドの考案者であるジョン・ボリンジャー氏が提唱するボリンジャーバンドの使い方を再現するために、ボリンジャーバンド、%B、バンドウィズ(Bandwidth) の3つを1つのインジケーターで表示可能にしたものです。シグナルやアラートにも対応しています。
ボリンジャーバンドは1980年代にアメリカ人トレーダー兼アナリストのジョン・ボリンジャー氏によって開発されました。彼はその30年後に%Bとバンドウィズを導入しました。
 🟦 他のボリンジャーバンドとの違い 
TradingView標準のボリンジャーバンドや他のボリンジャーバンドとは異なり、このインジケーターでは3つのボリンジャーバンドツールを1つのインジケーターで表示し、シグナルやアラート機能も利用できるようになっています。
一般的に知られている通常のボリンジャーバンドに加え、%Bやバンドウィズを組み合わせて表示でき、設定次第では3つすべてを同時にモニターすることも可能です。これにより、価格とボリンジャーバンドの位置関係とボラティリティ変化をひと目で、かつ定量的に把握することができます。
 🟦 機能: 
 
 ボリンジャーバンド(アッパーバンド・基準線・ロワーバンド)を描画し、バンド間を塗りつぶし表示。
 
 
 オプションで%Bまたはバンドウィズを追加表示可能。
 
 
 バンドウィズの最高値・最安値を、任意の期間で検出して表示。
 
 
 バンドウィズが指定期間の最高値(バルジ※)または最安値(スクイーズ)に達した際にシグナルを表示。
 
※バルジは一般的にボリンジャーバンドで用いられるエクスパンションとほぼ同じ意味ですが、定義が異なります。(下記参照)
 
 バルジおよびスクイーズ発生時のアラート設定が可能。
 
📈 チャート例
下記チャートの緑の三角と赤の三角は、それぞれバルジとスクイーズを示しています。
  
 🟦 設定: 
 
 Length: ボリンジャーバンドの基準線計算に使う期間。
 
 
 Basis MA Type: SMA, EMA, SMMA (RMA), WMA, VWMAから選択可能。
 
 
 StdDev: 標準偏差の乗数(デフォルト2.0)。
 
 
 Option: 「Bandwidth」または「%B」を選択(両方表示するにはこのインジケーターを2回追加)。
 
 
 Period for Squeeze and Bulge: Bandwidthの最高値・最安値を検出する期間(デフォルトはジョン・ボリンジャー氏が推奨する125)。
 
 
 Style Settings: 色、線の太さ、透明度などをカスタマイズ可能。
 
📈 チャート例
下のチャートは「ボリンジャーバンド」「%B」「バンドウィズ」の3つを同時に表示した例です。
この場合、インジケーターを2回追加し、最初に追加した方ではOptionを「%B」に、次に追加した方では「Bandwidth」を選択します。
  
 🟦 使い方: 
 🟠 ボラティリティを監視する:
 
バンドウィズの値を見ることで、価格変動の収縮(スクイーズ)や拡大(バルジ)を確認できます。
これらはしばしば強い値動きの前兆となります。
ジョン・ボリンジャー氏はスクイーズとバルジを次のように定義しています:
 スクイーズ: 過去125期間の中で最も低いバンドウィズ→ 新しいトレンドが生まれる場所。 
 バルジ: 過去125期間の中で最も高いバンドウィズ → トレンドが終わりを迎える場所。 
この「125期間」はどのタイムフレームでも利用可能とされています。
📈 チャート1 
スクイーズの例
赤い三角のスクイーズの後に上昇トレンドが始まっているのが確認できます。
  
📈 チャート2 
バルジの例
緑の三角のバルジの箇所で下降トレンドから上昇トレンドへの反転が見られます。
  
📈 チャート3 
バルジが必ずしも反転を意味しない例
下記のチャート右側の緑の三角で示されたバルジの後も、上昇トレンドが継続しています。
この場合、バルジは反転ではなく「トレンド一時的な調整(レンジ入り)」を示しており、結果的に上昇トレンドが継続しています。
この場合、バルジは水色のボックスで示されたトレンドのフェーズの終わりを示しています。
 
 
※水色のボックスはインジケーターが描画したものではありません。
また、他のテクニカル分析と同様に、これらのセットアップは必ず新しいトレンドの発生やトレンド転換を保証するものではありません。トレーダーは他の要素も考慮し、慎重に意思決定する必要があります。
 🟠 価格とボリンジャーバンドの位置関係を確認する:
 
%Bを利用すれば、価格がバンドのどこに位置しているかを簡単に把握できます。
%Bが1に近ければ価格はアッパーバンド付近、0に近ければロワーバンド付近にあります。
 🟠 アラートを設定する:
 
バンドウィズが一定期間の最高値または最安値に到達した際にアラートを設定することで、ブレイクアウトやトレンド終了、反転の可能性に備えることができます。
 🟠 他のツールと組み合わせる:
 
このインジケーターは、プライスアクション、トレンド分析、環境認識などと組み合わせて活用すると最も効果的です。
Bollinger BandWidth Squeeze BreakoutBollinger BandWidth Squeeze Breakout 
 Description: 
This indicator merges classic Bollinger BandWidth (BBW) with TTM Squeeze Pro-style compression dots. It identifies volatility contractions, very effective at identifying chop or ranging markets, and color-codes the BBW line based on directional breakout bias—helping traders anticipate explosive moves before they happen.
 It supports multi-level squeeze detection: 
 
   High Compression (Orange) : Tightest squeeze — highly coiled setup
   Medium Compression (Red) : Moderate squeeze — building pressure
   Low Compression (Black) : Light squeeze — early contraction
  (No dot means no squeeze – free expansion)
 
 How It Works 
 Bollinger BandWidth (BBW): 
Calculated as the percent width between Bollinger Bands over a selected moving average (SMA, EMA, etc.). A rising BBW suggests volatility expansion; falling BBW indicates compression.
 Directional Bias (BBW Color): 
The line is colored green when recent bars show upside breakout pressure, red when downside pressure dominates, and gray when neutral. This is based on cumulative position of price relative to the Bollinger Bands.
 TTM Squeeze Pro Dots: 
Compression dots plotted on the zero line represent volatility squeeze levels, using up to 3 Keltner Channel thresholds:
 
   Orange Dot : High compression (tightest squeeze zone)
   Red Dot : Medium compression
   Black Dot : Low compression
  (No dot means no squeeze — price is expanding)
 
 Expansion & Contraction Context: 
Plots historical highest/lowest BBW values (user-defined period) to help spot extreme conditions.
 How to Interpret: 
Use squeeze dots to identify when the market is “chop/ranging.” Breakouts from these zones often come with sharp moves.
 BBW Line Color = Bias Filter: 
 
  Green → Bullish expansion pressure
  Red → Bearish expansion pressure
  Gray → Neutral or undecided
 
Use this to filter direction before entering a breakout or momentum trade.
 Inputs: 
 Length : Period for BB and Keltner calculations
 MA Type : Choose from SMA, EMA, SMMA, WMA, VWMA, or None
 StdDev : Standard deviation for BB
 Expansion/Contraction Lengths : Historical window to track BBW extremes
 Source : Input source for all calculations (default: Close)
 Keltner Multipliers : Customize thresholds for high/mid/low compression
 Best For: 
 
  Traders looking to anticipate breakout direction
  Scalpers and swing traders seeking early volatility cues
  Anyone using BB or TTM Squeeze logic in their setups
 
 Pro Tips: 
 
  Combine with momentum tools (e.g., RSI, MACD, SMI, CCI) to confirm breakout thrust
  Use squeeze dot color shifts (red/orange → no dot) as a breakout timing tool
  Use historical BBW highs/lows as context for relative volatility expansion






















