logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pulsewaveform  
#1 Posted : Tuesday, September 20, 2005 1:14:17 PM(UTC)
pulsewaveform

Rank: Member

Groups: Registered, Registered Users
Joined: 5/18/2005(UTC)
Posts: 10

I am looking for a way to measure how wide the bollinger bands on a stock are in a way that can be compared across stocks. In short I need help scaling the width of the bands to a common metric. Any ideas?
wabbit  
#2 Posted : Tuesday, September 20, 2005 1:22:34 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Seeing as Bollinger Bands are computed by adding and subtracting x*stdev(array,periods) from the MA you only need to find the standard deviation (stdev) of the price information in the first place. The stdev() data can be compared against any other company stdev(). Have a look in the Users Manual regarding construction of Bollinger Bands, it will give you insight into how to compare the data of different stocks. If you want to normalise the stdev data for all stocks in a folder/portfolio (or normalize - depends where you are from) then you are in for a very complicated process, that only Patrick and his amazing Dll will be able to solve (if he writes it!) Hope this helps. wabbit :D
crwinnr5  
#3 Posted : Tuesday, September 20, 2005 1:27:40 PM(UTC)
crwinnr5

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 7/21/2005(UTC)
Posts: 74
Location: Oklahoma USA

Here is the Width computation for BBands: (BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/(Mov(BBandTop(C,20,S,2),20,S)+(Mov(BBandBot(C,20,S,2),20,S)))/2
wabbit  
#4 Posted : Tuesday, September 20, 2005 1:37:36 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
[Whats up with the system tonight? - Missing data in posts, cannot re-post or edit??] Try again... Seeing as Bollinger Bands are computed by adding and subtracting x*stdev(array,periods) from the MA you only need to find the standard deviation (stdev) of the price information in the first place. The stdev() data can be compared against any other company stdev(). [edit] [lost most of this paragraph somehow??] The stdev() data can be compared against any other company stdev() by dividing each by the company price data array; i.e. stdev(c,20)/c. This can be easily scaled by multiplying by a constant, like 100, to return 100*stdev(c,20)/c. However, my preference is to divide by the MA used as the comparative difference in the first place.... just a preference, 100*stdev(c,20)/mov(c,20,s) Have a look in the Users Manual regarding construction of Bollinger Bands, it will give you insight into how to compare the data of different stocks. If you want to normalise the stdev data for all stocks in a folder/portfolio (or normalize - depends where you are from) then you are in for a very complicated process, that only Patrick and his amazing Dll will be able to solve (if he writes it!) Hope this helps. wabbit :D
getar1983  
#5 Posted : Sunday, November 6, 2005 9:50:27 PM(UTC)
getar1983

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/22/2005(UTC)
Posts: 1

crwinnr5 wrote:
Here is the Width computation for BBands: (BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/(Mov(BBandTop(C,20,S,2),20,S)+(Mov(BBandBot(C,20,S,2),20,S)))/2
try this a0:= Input("RSI Periods",3,34,5); c1:= Input("Upper Level",10,90,70); c2:= Input("50 Level",10,90,50); c3:= Input("Lower Level",10,90,30); a1:= CLOSE; a2:= ROC(a1,1,$); a3:= a2*(a2>0); a4:= a2*(a2<0); aa:= (PREV*(a0-1)+a3)/a0; dd:= (PREV*(a0-1)+a4)/a0; dd:= Abs(dd); UL:= a1+(a0-1)*Max(dd*c1/(100-c1)-aa,dd-aa/(c1/(100-c1))); MM:= a1+(a0-1)*Min(dd*(100/(100-c2)-1)-aa,dd-aa/(100/(100-c2)-1)); LL:= a1+(a0-1)*Min(dd*c3/(100-c3)-aa,dd-aa/(c3/(100-c3))); UL;MM;LL;
Users browsing this topic
Guest (Hidden)
Similar Topics
bollinger bands formula (Formula Assistance)
by calisto77 6/2/2020 5:09:43 AM(UTC)
October 2019: Combining Bollinger Bands with Candlesticks (2019)
by MS Support 11/5/2019 6:28:51 PM(UTC)
Bollinger Bands exploration (Formula Assistance)
by gorachand 8/4/2015 5:57:07 PM(UTC)
Bollinger Bands properties (MetaStock)
by Alessandro 3/12/2013 5:15:48 PM(UTC)
MACD w Bollinger bands System (Basic Coding Techniques)
by henry1224 11/14/2012 6:04:18 PM(UTC)
Very Simple Bollinger Bands Formula (Formula Assistance)
by GameTime 1/21/2011 11:45:37 PM(UTC)
Current Signal for pp: Pivot Rotation, pp: CCI (Modified), pp: Bollinger Bands (Modified) (Formula Assistance)
by NeuroDoc 5/27/2008 2:50:40 PM(UTC)
Bollinger Bands + RSI formula question (Formula Assistance)
by arnevanveen 1/5/2006 9:14:05 AM(UTC)
Bollinger Bands with TDC Multi time frame indicator (Plugins & Addons)
by henry1224 11/30/2005 1:14:36 AM(UTC)
Adaptive Bollinger Bands (Formula Assistance)
by Bulli 11/7/2005 4:16:10 PM(UTC)
Adaptive Bollinger Bands w Trend Direction Expert (Formula Assistance)
by henry1224 8/21/2005 11:57:10 AM(UTC)
Adaptive Bollinger Bands (Formula Assistance)
by henry1224 8/20/2005 1:06:15 PM(UTC)
Keltner & Bollinger Bands composite indicator (Formula Assistance)
by Jose 4/8/2005 2:16:39 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.