StockFetcher Forums · General Discussion · Upper Bollinger Band<< >>Post Follow-up
greatspotter@gmail.com
5 posts
msg #147933
Ignore greatspotter@gmail.com
5/27/2019 10:23:31 AM

When I run the below code I am finding that it is not working off of the upper bollinger band. It will not add the upper bollinger band column or will it show stocks that penetrate the upper bollinger band. Instead the results show stocks that crossed above the mid bollinger band.
Can anyone show me my mistake?

show stocks where high crossed above Upper Bollinger Band(20,2)
and high above the EMA(50)
and stocks high below MA(200)
and Average Volume(30) is above 500000
and price is greater than $10
and market is not AMEX
and market is not OTCBB
and market is not ETF
add column EMA(50)
add column Upper Bollinger Band(20,2)

KSK8
561 posts
msg #147934
Ignore KSK8
5/27/2019 1:35:08 PM

It must be a glitch, here's the fix though:

Fetcher[
set{upper_bollinger, Upper Bollinger Band(20,2)}

high crossed above upper_bollinger
high above the EMA(50)
high below MA(200)
Average Volume(30) is above 500000
close > 10
market is not AMEX
market is not OTCBB
market is not ETF
add column EMA(50)
add column upper_bollinger

draw Upper Bollinger Band(20,2)
do not draw upper_bollinger
]



nibor100
1,031 posts
msg #147938
Ignore nibor100
5/27/2019 7:09:23 PM

@greatspotter,

Regarding your post I'm not quite following some of your comments so I am hoping you will clarify so we can better assist you:

a. "When I run the below code I am finding that it is not working off of the upper bollinger band"

If I put your filter code in a new filter box in SF and run it; I get 3 stocks whose high all are above the upper bollinger band so I am not quite sure what you meant by that phrase.


b. ". It will not add the upper bollinger band column" .

SF is not adding that column because when it runs into the word "upper" it doesn't know which of its indicators that use that word to go to (for some unknown coding reason)

c. " or will it show stocks that penetrate the upper bollinger band"

I thought you wanted stocks whose high had penetrated the upper bollinger band so this should be good for you?

d. ." Instead the results show stocks that crossed above the mid bollinger band"

When I add the mid bollinger band to your filter or the simple Ma(20) line to your filter, for all 3 stock results they had crossed above the mid bollinger band days earlier than last Friday so I am uncertain what you meant by that phrase either.

Thanks,
Ed S.


greatspotter@gmail.com
5 posts
msg #147941
Ignore greatspotter@gmail.com
5/28/2019 8:07:52 AM

Thanks for all your help KSK8 and Ed S.
Everything works great now. Really appreciate the help.
Brett

StockFetcher Forums · General Discussion · Upper Bollinger Band<< >>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.