Latest on ATNET:

#crypto-opsec #crypto-fundamentals
#crypto-trading-strategy #crypto-tools
NEW STRATEGY   Nft trading  · 09/04/21

Script Spotlight: Bollinger Band Width

Altcoin Trading Blog
10/15/21 · Crypto technical analysis

About This Blog Post

  1. Filed as ScriptSpotlight
  2. Uses tradingview ( + more posts) 
  3. Uses bitfinex ( + more posts) 
  4. On the same topic: Ichimoku Cloud for Crypto Trading
  5. On the same topic: Script Spotlight: Detrended Price Oscillator (DPO)
  6. On the same topic: Script Spotlight: Bollinger Band Width
  7. On the same topic: How to read option charts: Market sentiment analysis based on crypto derivatives
  8. On the same topic: Script Spotlight: A/D Levels
Welcome to AltcoinTrading's ScriptSpotlight series. In ScriptSpotlight, we review pine scripts that are available from the FREE version of Tradingview public library. If you don't have a TradingView account yet, make the free one here.
Crypto Trading Strategy - 5 Weeks of Onboarding Reads: Subscribe and select "All Posts" or "Strategy & Security" as your preference.
 

In this Script Spotlight we are looking at scripts of Bollinger Band Width that are available from Tradingview public library. If you don’t have a TradingView account yet, make a free one here.

Bollinger Band Width

Bollinger band width indicator (or “bandwidth”) belongs to the more straightforward derivations of the famous Bollinger bands.

The gist of the Bollinger bandwidth script is essentially plotting the information about how far apart are the Standard Deviation lines of Bollinger bands, that is, the outer bands.

Script Spotlight: Bollinger Band Width

Bollinger bands is a technical analysis indicator providing information about volatility that, thanks to the indicator, is displayed in such a way that it can show more clearly in which direction is the market likely to move in the nearest future:

  • The middle band is a moving average, typically the SMA, therefore the current mean or “average” price.
  • The outer bands are standard deviations of that mean, measuring how far the current action has the price spike out away from its mean.
  • Capital markets work in cycles, a directional movement (a bull run or a bear descent) always starts after at least a short relatively stable period - that is, period of lower volatility. And the other way around - if the price is running in a trend but the bandwidth is hitting its max, some topping out or re-accumulation range could soon follow.

There are two interesting versions of Bollinger band width on Tradingview:

  • Simple Bollinger Bandwidth with high/low reference that just plots the width as a line and lets you compare different time periods.
  • The IO_BBWidth script that uses weighted moving average and will color the background of your line chart when the market starts trending, so that you cannot tell yourself whatever fits your bias.

Let’s take a look at the IO-BB-Width.

Full script code

Does it work?

When you first load the script into a BTCUSD chart, with the default settings you will find that it shows the market always trending. The reason is, the default setting is meant for ultra short timeframes.

You will need to backtest the coloring threshold on the timeframe of your choice, based on the near past.

Once you’ve done that though, it’s actually a pretty useful piece of info because it will show you when the current run starts running out of steam.

While it is often just to take a breather (a short period of low volatility doesn’t always mean the run is over), if you’re trading with leverage or with timing limitation (such as with derivatives), you will definitely find this information useful and not enter any new positions until the situation starts clearing up.

Here is the indicator with 21 day WAP, stdev3 and a threshold of 500 on BTCUSD 4H:

Script Spotlight: Bollinger Band Width

You can see it is not super precise; it’s not the kind of information you should use to trigger your getting into a position - it’s far more valuable to consult it if you are considering getting out.

On a 5M chart for BTCUSD you can use the same information in a different way - here with the threshold of 150 you can see it will highlight just the time periods that happened to be most volatile. On super short timeframes you are of course not looking for a sustainable trend, but if you’re a scalper, this information is pretty good for you.

Script Spotlight: Bollinger Band Width

As with longer timeframes though - you will need to backtest it.

Summary

Bollinger bandwidth indicator in its basic form provides no new information, you can get all this just from looking at the bands.

It is just a more convenient way to display it, because with bbands you are adding a lot of new lines over your price action and it can get a little crowded there.

Having the bandwidth in a separate box under the price chart also lets you plot in additional things or set up squeeze alerts, which can come handy if you are scalping.


You just read AltcoinTrading's ScriptSpotlight series. In ScriptSpotlight, we review pine scripts that are available from the FREE version of Tradingview public library. If you don't have a TradingView account yet, make the free one here.


Scriptspotlight: All posts in this series
09 Aug 2021 - DeFi Tools: Technical Analysis Scripts for DeFi Trading
02 Oct 2021 - OBV: On-Balance Volume Divergence Crypto Strategies
15 Oct 2021 - Script Spotlight: Bollinger Band Width
12 Aug 2021 - Script Spotlight: Detrended Price Oscillator (DPO)
12 Aug 2021 - Script Spotlight: A/D Levels
15 Oct 2021 - Script Spotlight: Automatic Divergences

 

Want to *really* learn crypto charting & technical analysis?

Hate to break it to you, but there's no trading school, no neatly structured course and no simple how to.
Read our articles to get familiar with the tools, but try everything hands on. Trading will press your emotions, you can only really learn it as you go.

All the good crypto charting tools and platforms are accessible for FREE in either TradingView app or at Bitfinex. Just start!

Get TradingView Signup at Bitfinex

 

Latest Airdrops

FINN airdrop to token holders - snapshot 25-30 Oct
$FINN token holders will be airdropped up to 1000 $FINN tokens on November 1st. All airdrops must be claimed within 1 week via huckleberry.finance.
Vodra on CoinMarketCap (50k USD) - until 28 Oct
CoinMarketCap and Vodra are running an airdrop of airdrop 50,000 USD worth of Vodra Token to promote their upcoming IDO. To enter you need to add VDR to your CMC watchlist and follow them on all social media. Winners will be drawn on Oct 30.
Apricot Finance rewards (SOL) - from 19 Oct
Apricot finance launched its farming platform on 19th October and vaguely promises that early users will be retroactively rewarded for activity.