Page 1 of 3

Bollinger Bands - Percentage and Bandwidth

PostPosted: Wed Jan 06, 2010 12:55 pm
by TonyMod
Hello,

These are 2 additions to Bollinger Bands indicator:

1. Bollinger Bands - Percentage (Line)
Formula: b% = ((close - lower band) / (upper band - lower band)) * 100

NOTE There is NEW version or %B indicator.
BB-Percentages.lua
Download: Bollinger Band - Percentages in .Lua
(2.35 KiB) Downloaded 2731 times



2. Bollinger Bands - Bandwidth (Histogram/Bar)
Formula: Bandwidth = ((upper band - lower band) / middle band)
BB-Bandwidth.lua
Download: Bollinger Band - Bandwidth in .Lua
(2.3 KiB) Downloaded 3125 times


These two and original Bollinger Bands from MarketScope, can be ran together for best effect.

Here is a screenshot of % and bandwidth running:
BB-percentage-AND-bandwidth-oscillator.gif
Bollinger Bands: Percentage and Bandwidth, two indicators at the same time in MarketScope.


Buy/Sell signals (provided by fxcodebase.com user):
Buy Signal - Bollinger Percent = 0 (<0.1)
Sell Signal - Bollinger Percent = 1 (>0.9)

Detailed Description of Bollinger Bands can be found here at their official website:
http://www.bollingerbands.com/services/bb/

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Wed Jan 06, 2010 1:20 pm
by Apprentice
Thanks for the effort, as far as I can see, Bollinger Percentages (% B) corresponds to the specification, I gave.
I have two suggestions, would be helpful to add line a line at 0.5 and 1 (50 and 100 percent).

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Wed Jan 06, 2010 1:30 pm
by TonyMod
Apprentice wrote:Thanks for the effort, as far as I can see, Bollinger Percentages (% B) corresponds to the specification, I gave.
I have two suggestions, would be helpful to add line a line at 0.5 and 1 (50 and 100 percent).


Good, i'm really glad our work is useful to people. Let me know if anything needs to be fixed or changed, tweaked, etc....

As far as adding lines, yes its possible to do using an indicator, but doesn't MarketScope allow adding of any type of lines user desires right on top of the chart?

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Wed Jan 06, 2010 2:26 pm
by Apprentice
you're right, I'm a little lazy

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Wed Nov 17, 2010 9:34 pm
by skipper
There is a little extension of BBW oscillator

Bollinger Bandswidth oscillator would help to measure price plot’s volatility; it shows result as a width of Bollinger Bands in times, points or price %. Technically speaking Bollinger Bandswidth is a standard deviation of price movement multiplied by [some] number of deviations.

When the BBW is close to 0 it shows low volatility and when it moves to its high levels volatility is high. You have to understand that width of Bollinger Bands is VERY depend on time frame; so you have to setup range levels of the oscillator every time when you change the time frame. Default levels (0.28-1.4) are good for BB(5min,75,2) only.

As a rule, volatility moves in cycles - periods of low volatility are replaced by periods of high volatility. In general, periods of high volatility can be noted during down-trends and corrections downward. Periods of low volatility can be observed during up-trends and recoveries.

Also this nutty oscillator could help to filter out a noise of insufficient signals producing by some indicators (like Volty Channel Stop) in low volatile market.

Attached 2 versions of Oscillator: single time frame and bigger time frame.

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Fri May 27, 2011 5:15 am
by nookie
Hello,

I would like to ask is it possible to change/tweak this indicator a bit with showing it like a histogram or otherwise tell me how to add lines to this indicator itself so I can later remove/add this indicator with the lines I setup before ... if this is possible?

Thanks

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Fri May 27, 2011 9:23 am
by Apprentice
Like This.
BB-Percentages.lua
(2.79 KiB) Downloaded 1777 times


Simply replacing core.Line with core.Bar.
When you define indicator output stream.

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Tue Jun 07, 2011 5:13 am
by nookie
Sorry again for bothering but how is it possible to add lines to this indicator and with different colours.. for example lines on levels 100 and 0 ?

Thanks a lot

nookie

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Tue Jun 07, 2011 11:28 am
by Apprentice
I'll try to write something.

Re: Bollinger Bands - Percentage and Bandwidth

PostPosted: Fri Jun 24, 2011 1:16 pm
by Apprentice
Style Option Added to Bollinger Band - Percentage Oscillator