StockFetcher Forums · General Discussion · How can I create a filter to find a trend using Bollinger Bands<< 1 2 >>Post Follow-up
rjcabernet
4 posts
msg #91442
Ignore rjcabernet
4/20/2010 4:53:22 PM

I there a way one can find a trend change based on the close crossing above the upper bollinger band or a close crossing below the lower bollinger band. A close crossing above the upper bollinger would indicate a bullish trend signal. A bearish trend would signal when the closed crossed below the lower bollinger band. This is only a signal if it is the first such cross since the prior trend signal. The prior trend signal can be a day ago or months ago. In other words just because there is a close that crosses above or below the appropriate bollinger band does not signal a start of a trend. The close can cross many times back and forth on the corresponding band while in the trend.

Thanks, RJ

four
5,087 posts
msg #91462
Ignore four
4/20/2010 10:32:37 PM

Fetcher[
high crossed above the upper bollinger band (9)
set{cross, cwma(upper bollinger band (9),20) crossed above upper bollinger band (9)}
draw cross
draw cwma(upper bollinger band (9),20)

volume > 1000000
Average Volume(30) > 250000
close between 5 and 10
chart-length is 4 months
]



chetron
2,817 posts
msg #91474
Ignore chetron
modified
4/21/2010 6:55:04 AM

VERY NICE, FOUR.

MAYBE...

Fetcher[

high crossed above the upper bollinger band (9)
set{VDN, COUNT(cwma(upper bollinger band (9),20) above upper bollinger band (9),1)}
set{VUP, COUNT(cwma(upper bollinger band (9),20) BELOW UPPER bollinger band (9),1)}
draw VDN ON PLOT VUP
draw cwma(upper bollinger band (9),20)

volume > 1000000
Average Volume(30) > 250000
close between 5 and 10
chart-length is 4 months

]



chetron
2,817 posts
msg #91475
Ignore chetron
4/21/2010 7:12:50 AM

BUT THE SHORT ANSWER WOULD BE, IF YOU WANT TO INDENTIFY A TREND, USE A TREND INDICATOR, MOVING AVERAGES, AND NOT A VOLITILITY INDICATOR.


HTH

rjcabernet
4 posts
msg #91485
Ignore rjcabernet
modified
4/21/2010 1:44:53 PM

Thanks for the replies. I misstated a trend for what I am really looking for, which is a momentum breakout using the bollinger bands. I am using Bollingers Bands with a period of 10 and a deviation of .8 IE: upper bollinger band(10,.8) or lower bollinger band(10,.8).

I tried using the filter you supplied with the above parameters and did not get the results I was looking for.
If you click on the following link you may get a better picture of what my intent is. This is a chart showing where the momentum begins and ends.

http://www.carterbillings.com/momentum.jpg

Thanks again for you help

chetron
2,817 posts
msg #91488
Ignore chetron
4/21/2010 2:51:04 PM

isn't that the woodie bb play thingy?????????????

rjcabernet
4 posts
msg #91492
Ignore rjcabernet
4/21/2010 3:39:52 PM

I got it from First Wave - David Elliott

http://groups.google.com/group/firstwave-beginners

I don't think it can be done in SF without a filter that can set flags based on an event in the past using an "if" command.

chetron
2,817 posts
msg #91496
Ignore chetron
modified
4/21/2010 5:14:23 PM

can't be done, shirley,you jest.......


Fetcher[


set{vbuy,count(close crossed above Upper Bollinger Band(10,0.8),1)}
set{vshort,count(close crossed below Lower Bollinger Band(10,0.8),1)}

set{var1,days(close crossed above Upper Bollinger Band(10,0.8),100)}
set{var2,days(close crossed below Lower Bollinger Band(10,0.8),100)}

set{vmomodn,var1 - var2}
set{vmomoup,var2 - var1}

draw vmomodn on plot vmomoup

set{vplays,vbuy + vshort}

draw bollinger(10,0.8)
draw vshort on plot vbuy

add column vshort
add column vbuy

vplays above .5
do not draw vplays

close above .1
volume above 1000000
]



with jp tweaks....

Fetcher[
/* jp influences */



set{vbuy,count(close crossed above Upper Bollinger Band(40,0.4),1)}
set{vshort,count(close crossed below Lower Bollinger Band(40,0.4),1)}

set{var1,days(close crossed above Upper Bollinger Band(40,0.4),100)}
set{var2,days(close crossed below Lower Bollinger Band(40,0.4),100)}

set{vmomodn,var1 - var2}
set{vmomoup,var2 - var1}

draw vmomodn on plot vmomoup

set{vplays,vbuy + vshort}

draw bollinger(40,0.4)
draw vshort on plot vbuy
draw ema(100)

add column vshort
add column vbuy

vplays above .5
do not draw vplays

close above .1
volume above 1000000

]




all together...

Fetcher[

/* all mixed up */
set{vbuy1,count(close crossed above Upper Bollinger Band(40,0.4),1)}
set{vshort1,count(close crossed below Lower Bollinger Band(40,0.4),1)}

set{var11,days(close crossed above Upper Bollinger Band(40,0.4),100)}
set{var12,days(close crossed below Lower Bollinger Band(40,0.4),100)}

set{vmomodn1,var11 - var12}
set{vmomoup1,var12 - var11}

draw vmomodn1 on plot vmomoup1

set{vplays1,vbuy1 + vshort1}

draw bollinger(40,0.4)
draw vshort1 on plot vbuy1

add column vshort1
add column vbuy1

*******************

set{vbuy,count(close crossed above Upper Bollinger Band(10,0.8),1)}
set{vshort,count(close crossed below Lower Bollinger Band(10,0.8),1)}

set{var1,days(close crossed above Upper Bollinger Band(10,0.8),100)}
set{var2,days(close crossed below Lower Bollinger Band(10,0.8),100)}

set{vmomodn,var1 - var2}
set{vmomoup,var2 - var1}

draw vmomodn on plot vmomoup

set{vplays2,vbuy + vshort}
set{vplays,vplays2 + vplays1}

draw bollinger(10,0.8)
draw vshort on plot vbuy

add column vshort
add column vbuy

vplays above .5
do not draw vplays

close above .1
volume above 1000000
]



four
5,087 posts
msg #91497
Ignore four
4/21/2010 5:18:50 PM

@chetron
thanks for the "very nice".

chetron
2,817 posts
msg #91498
Ignore chetron
4/21/2010 5:22:29 PM

@ four, i like to see new looks, and angles posted in the forums.

StockFetcher Forums · General Discussion · How can I create a filter to find a trend using Bollinger Bands<< 1 2 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.