OPEN-SOURCE SCRIPT

Uber Dank CCI + Captain Beefheart Bollinger Bands Extraordinare

Updated
Introducing, the Uber Dank CCI + Captain Beefheart Bollinger Bands Extraordinaire

Its bollinger bands, CCI and CCI Bollinger Bands all in one.

The color of the CCI shows the condition of the bollinger band on chart.

Close > upper band = red
Close > basis = yellow
Close < basis = blue
Close < lower band = green

Then a bollinger band is printed on the CCI itself,

The background color displays the condition of the CCI bollinger band by the same logic as the CCI color.

CCI > upper band = red
CCI > basis = yellow
CCI < basis = blue
CCI < lower band = green

The exclamation marks tell you when the conditions are coming to an end. They check the last two bars to see if both the CCI and the closing price are under their bollinger bands at the same time for at least one of those bars, and they check the current bar that at least one of those conditions has ended. That is why they will most often print two exclamation marks in a row.
Release Notes
Forgot to delete extra indicators from the chart layout. Sorry, mods. At least its pretty now.
Release Notes
Now includes *optional* histogram with multiple modes.

Includes Normalization from
MLExtensions
Bollinger Bands (BB)Commodity Channel Index (CCI)Oscillators

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?


take the brown acid
Also on:

Disclaimer