ClassicScott

+ Bollinger Bands Width

Here is my rendition of Bollinger Bands Width. If you are unfamiliar, Bollinger Bands Width is a measure of the distance between the top and bottom bands of Bollinger Bands. Bollinger Bands themselves being a measure of market volatility, BB Width is a simpler, cleaner way of determining the amount of volatility in the market. Myself, I found the original, basic version of BB Width a bit too basic, and I thought that by adding to it it might make for an improvement for traders over the original.

Simple things that I've done are adding a signal line; adding a 'baseline' using Donchian Channels (such as that which is in my Average Candle Bodies Range indicator); adding bar and background coloring; and adding alerts for increasing volatility, and baseline and signal line crosses. It really ends up making for a much improved version of the basic indicator.

A note on how I created the baseline:
First, what do I mean by 'baseline?' I think of it as an area of the indicator where if the BB Width is below you will not want to enter into any trades, and if the BB Width is above then you are free to enter trades based on your system. It's basically a volatility measure of the volatility indicator. Waddah Attar Explosion is a popular indicator that implements something similar. The baseline is calculated thus: make a Donchian Channel of the BB Width, and then use the basis as the baseline while not plotting the actual highs and lows of the Donchian Channel. Now, the basis of a Donchian Channel is the average of the highs and the lows. If we did that here we would have a baseline much too high, however, by making the basis adjustable with a divisor input it no longer must be plotted in the center of the channel, but may be moved much lower (unless you set the divisor to 2, but you wouldn't do that). This divisor is essentially a sensitivity adjustment for the indicator. Of course you don't have to use the baseline. You could ignore it and only use the signal line, or just use the rising and falling of the BB Width by itself as your volatility measure.

I should make note: the main image above at default settings is an 8 period lookback (so, yes, that is quite fast), and the signal line is a Hull MA set to 13. The background and bar coloring are simply set to the rising and falling of the BB Width. Images below will show some different settings, but definitely play with it yourself to determine if it might be a good fit for your system.

Above, settings are background and bar coloring tuned to BB Width being above the baseline, and also requiring that the BB Width be rising. Background coloring only highlights increasing volatility or volatility above a certain threshold. Grey candles are because the BB Width is above the baseline but falling. We'll see an example without the requirement of BB Width rising, below.

Here, we see that background highlights and aqua candles are more prevalent because I've checked off the requirement that BB Width be rising. The idea is that BB Width is above the baseline therefor there is sufficient volatility to enter trades if our indicators give us the go-ahead.

This here is set to BB Width being above the signal line and also requiring a rising BB Width. Keep in mind the signal line is a Hull MA.

And this fourth and final image uses a volume-weighted MA as the signal line. Bar coloring is turned off, and instead the checkboxes for volatility advancing and declining are turned on under the signal line options. BB Width crosses up the signal line is advancing volatility, while falling below it is declining volatility. Background highlights are set to baseline and not requiring a rising BB Width. This way, with a quick glance you can see if the rising volatility is legitimate, i.e., is the cross up of the signal line coupled with it being above the baseline.

Please enjoy.

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?