OPEN-SOURCE SCRIPT

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

snapshot

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.

snapshot

In the chart above we can see the oscillator using a multiplicative factor of 2.
Release Notes
Minor changes.
Bands and ChannelsbollingerbandstrategyBollinger Bands Width (BBW)bollingersbandbreakoutbreakouttradingLUXluxalgoOscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Also on:

Disclaimer