This post focuses on customizable Bollinger Bands factory scans, which can be edited, modified, or rewritten and then scanned using ChartAlert’s native stock screener or technical analysis scanner, namely the Basic Scanner and Advanced Scanner.

**Display Bollinger Band Values**

Tags: bollinger band scan, bollinger band scanner, bollinger band screener nse, bollinger bands screener, nifty bollinger band

```
List symbols
Add Column Bollinger Band Lower(20) as BBL
Add Column Bollinger Band Middle(20) as BBM
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

The scan computes and displays the Bollinger Band values for the 20-period, along with a Standard Deviation of 2, for all NSE symbols.

**OPTION 1**

The parameter for “Standard Deviation” is available as an option, with a default value of 2. If a different Standard Deviation is desired, it must be explicitly specified as indicated below:

```
List symbols
Add Column Bollinger Band Lower(20,1.5) as LBB
Add Column Bollinger Band Middle(20,1.5) as MBB
Add Column Bollinger Band Upper(20,1.5) as UBB
Apply to NSE
```

**OPTION 2**

In accordance with in-built functions, abbreviated designations (aliases) can be used in a manner consistent with the examples provided below:

```
List symbols
Add Column BBL(20,1.5) as BBL
Add Column BBM(20,1.5) as BBM
Add Column BBU(20,1.5) as BBU
Apply to NSE
```

**Converging Bollinger Band – Option 1**

Tags: bollinger bands converging, bollinger band blast scanner, narrow bollinger band scanner, bollinger band squeeze daily, bollinger band squeeze screener

```
List symbols where Bollinger Band Lower(20) has been converging towards Bollinger Band Upper(20) over the last 5 bars
Add Column Bollinger Band Lower(20) as BBL
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

In line with the “Converging Bollinger Bands – Option 2” below, this scan examines the recent narrowing of Bollinger Bands over a period of 5 bars. However, it does not consider the individual movement of the Lower Bollinger Band and Upper Bollinger Band lines. Even if both lines are experiencing simultaneous upward (or downward) movement, as long as the gap between them is decreasing, this scan will identify the stock as a filtered result.

**OPTION 1**

The “Standard Deviation” parameter is optional and is set to a default value of 2 automatically. However, if a different Standard Deviation value is desired, it must be explicitly specified. Similar to other instances, shorter names or aliases can be used, as demonstrated below:

```
List symbols where BBL(20,1.5) has been converging towards BBU(20,1.5) over the last 5 bars
Add Column BBL(20,1.5) as BBL
Add Column BBU(20,1.5) as BBU
Apply to NSE
```

**Converging Bollinger Band – Option 2**

Tags: bollinger bands converging, bollinger band blast scanner, narrow bollinger band scanner, bollinger band squeeze daily, bollinger band squeeze screener

```
List symbols where Bollinger Band Lower(20) has been increasing over the last 5 bars
And Bollinger Band Upper(20) has been decreasing over the last 5 bars
Add Column Bollinger Band Lower(20) as BBL
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

In a manner akin to the approach described in “Converging Bollinger Bands – Option 1” above, this scan examines the recent narrowing of Bollinger Bands over a span of 5 bars. However, it adds an additional criterion: it verifies that while the Lower Bollinger Band (BBL) has been on an upward trend, the Upper Bollinger Band (BBU) has been on a downward trend, indicating a convergence between the two bands.

In contrast to Option 1, this scan does not exclude stocks when the difference between BBU and BBL is narrowing but both bands are simultaneously increasing (or decreasing).

**OPTION 1**

The “Standard Deviation” parameter is optional and is set to a default value of 2 automatically. However, if a different Standard Deviation value is desired, it must be explicitly specified. Similar to other instances, shorter names or aliases can be used, as demonstrated below:

```
List symbols where BBL(20,1.5) has been increasing over the last 5 bars
And BBU(20,1.5) has been decreasing over the last 5 bars
Add Column BBL(20,1.5) as BBL
Add Column BBU(20,1.5) as BBU
Apply to NSE
```

**Diverging Bollinger Band – Option 1**

Tags: bollinger bands divergence, bollinger bands diverging

```
List symbols where Bollinger Band Lower(20) has been diverging from Bollinger Band Upper(20) over the last 5 bars
Add Column Bollinger Band Lower(20) as BBL
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

In line with the methodology employed in the “Diverging Bollinger Bands – Option 2” below, this scan examines the expansion of Bollinger Bands over the preceding 5 bars. However, in this particular scenario, we do not analyze the individual movements of the Lower Bollinger Band and Upper Bollinger Band lines. It is possible that both lines are simultaneously moving upward (or downward), but as long as the gap between them is widening, this scan will identify and filter the corresponding stock.

**OPTION 1**

The “Standard Deviation” parameter is optional and is set to a default value of 2 automatically. However, if a different Standard Deviation value is desired, it must be explicitly specified. Similar to other instances, shorter names or aliases can be used, as demonstrated below:

```
List symbols where BBL(20,1.5) has been diverging from BBU(20,1.5) over the last 5 bars
Add Column BBL(20,1.5) as BBL
Add Column BBU(20,1.5) as BBU
Apply to NSE
```

**Diverging Bollinger Bands – Option 2**

Tags: bollinger bands divergence, bollinger bands diverging

```
List symbols where Bollinger Band Lower(20) has been decreasing over the last 5 bars
And Bollinger Band Upper(20) has been increasing over the last 5 bars
Add Column Bollinger Band Lower(20) as BBL
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

In a manner akin to the “Diverging Bollinger Bands – Option 1” above, this scan examines the expansion of Bollinger Bands over the previous five bars. However, in this instance, an additional verification is performed to ensure that while the Lower Bollinger Band has been declining, the Upper Bollinger Band has been advancing, resulting in a divergence between them.

Contrary to Option 1, if the disparity between the Upper Bollinger Band (BBU) and Lower Bollinger Band (BBL) is widening but both BBU and BBL are concurrently increasing or decreasing, this scan will not act as a filtering mechanism for the stock.

**OPTION 1**

```
List symbols where BBL(20,1.5) has been decreasing over the last 5 bars
And BBL(20,1.5) has been increasing over the last 5 bars
Add Column BBL(20,1.5) as BBL
Add Column BBU(20,1.5) as BBU
Apply to NSE
```

**Lower Bollinger Band Breakout**

Tags: bollinger band breakout scanner, bollinger band breakout screener, bollinger band breakout strategy, bollinger band support breakdown, close below lower bollinger band, close crossing lower bollinger band from below, lower bollinger band breakout, lower bollinger band crossover, stocks above lower bollinger band, stocks below lower bollinger band, stocks touching lower bollinger band

```
List symbols where Close crossed below the Bollinger Band Lower(20,2)
Add Column Bollinger Band Lower(20,2) as BBL
Apply to NSE
```

The purpose of this scan is to identify symbols in which the closing price has recently crossed below the Lower Bollinger Band. The Lower Bollinger Band values are calculated and shown in the report.

**OPTION 1**

To refine the scan, we will modify it to filter out symbols that have closed below the BBL (Lower Bollinger Band) after having been above it for the previous 3 bars. It’s important to note that the alias “BBL” is used to represent the Lower Bollinger Band. Additionally, we are excluding the mention of the default Standard Deviation of “2” since it is being used (by default) in this case.

```
List symbols where Close has crossed below the BBL(20) after remaining above it for 3 bars
Add Column BBL(20) as BBL
Apply to NSE
```

**Upper Bollinger Band Breakout**

Tags: bollinger band breakout scanner, bollinger band breakout screener, bollinger band breakout strategy, above upper bollinger band, bollinger band upper band, close above upper bollinger band, close crossing upper bollinger band from below, price above upper bollinger band, rise above upper bollinger band, stocks closing above upper bollinger band, stocks crossing upper bollinger band, upper bollinger band, upper bollinger band breakout, upper bollinger band crossover, upper bollinger band screener, upper bollinger band crossover

```
List symbols where Close has crossed above the Bollinger Band Upper(20,2)
Add Column Bollinger Band Upper(20,2) as BBU
Apply to NSE
```

This scan identifies symbols in which the closing price has recently crossed above the Upper Bollinger Band. The Upper Bollinger Band is calculated and presented in the report.

**OPTION 1**

Revise the scan to filter symbols only when they have closed above the BBU (Upper Bollinger Band) after having remained below it for the previous 3 bars. Please take note of the “BBU” alias being used in this context. Additionally, it’s worth mentioning that the Standard Deviation of “2” has been omitted since it is being utilized by default.

```
List symbols where Close has crossed above the BBU(20) after remaining below it for 3 bars
Add Column BBU(20) as BBU
Apply to NSE
```

**Close Below Lower Bollinger Band**

Tags: bollinger band support breakdown, close below lower bollinger band, close crossing lower bollinger band from below, lower bollinger band breakout, lower bollinger band crossover, stocks above lower bollinger band, stocks below lower bollinger band, stocks touching lower bollinger band

```
List symbols where Close is below the Bollinger Band Lower(20)
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

This scan is designed to identify symbols where the closing price is below the Lower Bollinger Band. It does not analyze crossover events.

**OPTION 1**

Here’s an option to simplify the scan by replacing it with shorter forms:

```
List symbols where Cls < BBL(20)
Add Col BBL(20) as BBL
Apply to NSE
```

**Close Above Upper Bollinger Band**

Tags: above upper bollinger band, bollinger band upper band, close above upper bollinger band, close crossing upper bollinger band from below, price above upper bollinger band, rise above upper bollinger band, stocks closing above upper bollinger band, stocks crossing upper bollinger band, upper bollinger band, upper bollinger band breakout, upper bollinger band crossover, upper bollinger band screener, upper bollinger band crossover

```
List symbols where Close is above the Bollinger Band Upper(20)
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

This script is designed to identify instances where the closing price is above the Upper Bollinger Band. It does not specifically search for instances of price crossover.

**OPTION 1**

Here’s an option to simplify the scan by replacing it with shorter forms:

```
List symbols where Cls > BBU(20)
Add Col BBU(20) as BBU
Apply to NSE
```

**Close Near Lower Bollinger Band**

Tags: bollinger band support breakdown, close below lower bollinger band, close crossing lower bollinger band from below, lower bollinger band breakout, lower bollinger band crossover, stocks above lower bollinger band, stocks below lower bollinger band, stocks touching lower bollinger band

```
List symbols where Close is near Bollinger Band Lower(20)
And Close is between 10 and 500
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

This scan seeks out symbols that exhibit a specific characteristic: the closing price falls within a 2% range of the Lower Bollinger Band. Additionally, it applies an additional filter to consider only those symbols whose closing price lies between 10 and 500.

**OPTION 1**

The term “is near” denotes the condition where the values under consideration are within a 2% proximity of each other. In this case, the “Close” value is situated within the range bounded by 2% above the Upper Bollinger Band and 2% below the Upper Bollinger Band.

The following variation takes into account symbols in which the Close price falls within 2% of the Lower Bollinger Band, while remaining within the overall Bollinger Band range.

```
List symbols where Close is near Bollinger Band Lower(20)
And Close is > Bollinger Band Lower(20)
And Close is between 10 and 500
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

**Close Near Upper Bollinger Band**

Tags: above upper bollinger band, bollinger band upper band, close above upper bollinger band, close crossing upper bollinger band from below, price above upper bollinger band, rise above upper bollinger band, stocks closing above upper bollinger band, stocks crossing upper bollinger band, upper bollinger band, upper bollinger band breakout, upper bollinger band crossover, upper bollinger band screener, upper bollinger band crossover

```
List symbols where Close is near Bollinger Band Upper(20)
And Close is between 10 and 500
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

This scan aims to identify symbols where the closing price is approximately within a range of 2% of the Upper Bollinger Band. Additionally, it applies a filter to include symbols whose closing price falls within the range of 10 to 500.

**OPTION 1**

The condition “is near” is used to assess whether the values are within a 2% proximity of each other. In this case, the “Close” value should fall within the range bounded by 2% above the Upper Bollinger Band and 2% below the Upper Bollinger Band. For values other than “Close,” please replace the ChartAlert scan as follows:

```
List symbols where Close is within 1.5% of Bollinger Band Upper(20)
And Close is between 10 and 500
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

**Crossed Below Middle Bollinger Band**

Tags: bollinger bands middle line, middle bollinger band screener, middle bollinger band crossover

```
List symbols where Close has crossed below the Bollinger Band Middle(10,1.5)
Add Column Bollinger Band Middle(10,1.5) as MBB
Apply to NSE
```

This scan is designed to identify instances where the closing price has recently fallen below the Middle Bollinger Band. Additionally, the Middle Bollinger Band is calculated and displayed in the scan report.

**Crossed Above Middle Bollinger Band**

Tags: bollinger bands middle line, middle bollinger band screener, middle bollinger band crossover

```
List symbols where Close has crossed above the Bollinger Band Middle(10,1.5)
Add Column Bollinger Band Middle(10,1.5) as MBB
Apply to NSE
```

This scan aims to identify instances where the Close price has recently moved above the Middle Bollinger Band. The report also computes and displays the Middle Bollinger Band values.

**Lower Bollinger Band Support**

Tags: bollinger band support breakdown, close below lower bollinger band, close crossing lower bollinger band from below, lower bollinger band breakout, lower bollinger band crossover, stocks above lower bollinger band, stocks below lower bollinger band, stocks touching lower bollinger band

```
List symbols where Price is touching Bollinger Band Lower(20)
And Close is above Bollinger Band Lower(20)
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

This scan is designed to identify instances where the “Low“ value of a symbol crosses below the Lower Bollinger Band but fails to close below it. The phrase “Price is touching” indicates that any portion of the price bar is in contact with the Bollinger Band.

**OPTION 1**

Alternatively, we can express the same scan in the following manner:

```
List symbols where Low is below Bollinger Band Lower(20)
And Close is above Bollinger Band Lower(20)
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

**OPTION 2**

An alternative approach to attaining an identical outcome is as follows:

```
List symbols where Bollinger Band Lower(20) is between Close and Low
Add Column Bollinger Band Lower(20) as BBL
Apply to NSE
```

**Upper Bollinger Band Resistance**

Tags: above upper bollinger band, bollinger band upper band, close above upper bollinger band, close crossing upper bollinger band from below, price above upper bollinger band, rise above upper bollinger band, stocks closing above upper bollinger band, stocks crossing upper bollinger band, upper bollinger band, upper bollinger band breakout, upper bollinger band crossover, upper bollinger band screener, upper bollinger band crossover

```
List symbols where Price is touching Bollinger Band Upper(20)
And Close is below Bollinger Band Upper(20)
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

This scan is designed to identify symbols that have experienced a breach of the Upper Bollinger Band by their “High“ price, but have failed to close above it. The phrase “Price is touching” indicates that any portion of the price bar is in contact with the Bollinger Band.

**OPTION 1**

Alternatively, the scan can be written as follows:

```
List symbols where High is above Bollinger Band Upper(20)
And Close is below Bollinger Band Upper(20)
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

**OPTION 2**

An alternative approach to attaining an identical outcome is as follows:

```
List symbols where Bollinger Band Upper(20) is between High and Close
Add Column Bollinger Band Upper(20) as BBU
Apply to NSE
```

**Close between Two Upper Bollinger Bands**

```
List symbols where Close is below the Bollinger Band Upper(20) and Close is above the Bollinger Band Upper(20,1.5)
Add Column Bollinger Band Upper(20) as BBU_2.0
Add Column Bollinger Band Upper(20,1.5) as BBU_1.5
Apply to NSE
```

The scan identifies symbols in which the closing price falls within the range of the Bollinger Band Upper(20,2) and Bollinger Band Upper(20,1.5). These refer to two upper Bollinger Bands with different standard deviations, specifically 2.0 and 1.5, applied over a 20-period timeframe.

**OPTION 1**

Simplified phrasing for the same scan could be:

```
List symbols where Close is between the BBU(20) and BBU(20,1.5)
Add Column BBU(20) as BBU_2.0
Add Column BBU(20,1.5) as BBU_1.5
Apply to NSE
```

**Close between Two Lower Bollinger Bands**

```
List symbols where Close is above the Bollinger Band Lower(20) and Close is below the Bollinger Band Lower(20,1.5)
Add Column Bollinger Band Lower(20) as BBL_2.0
Add Column Bollinger Band Lower(20,1.5) as BBL_1.5
Apply to NSE
```

This scan is designed to identify symbols whose closing prices fall within the range defined by the Upper Bollinger Band (20,2) and Upper Bollinger Band (20,1.5). These bands consist of two sets: a 20-period Upper Bollinger Band with a 2.0 Standard Deviation, and another 20-period Upper Bollinger Band with a 1.5 Standard Deviation.

**OPTION 1**

Simplified phrasing for the same scan could be:

```
List symbols where Close is between BBL(20) and BBL(20,1.5)
Add Column BBL(20) as BBL_2.0
Add Column BBL(20,1.5) as BBL_1.5
Apply to NSE
```

For comprehensive insights into the Bollinger Bands, including how it’s computed, how to interpret it, how to use Bollinger Bands in trading, as well as an exploration of its advantages and limitations as an indicator, click here.