StockFetcher Forums · General Discussion · Nice Filter but not sure programmed is correct<< >>Post Follow-up
ham1198
174 posts
msg #34926
Ignore ham1198
1/18/2005 1:19:34 PM

SHOW STOCKS WHERE (CLOSING PRICE – LOWER BB VALUE)/CLOSING PRICE < .01
AND TODAY’S 50 DAY MOVING AVERAGE > 50 DAY MA 1 DAY AGO
AND TODAY’S 50 DAY MOVING AVERAGE > 50 DAY MA 5 DAY AGO
AND 50 DAY MA 5 DAYS AGO > 50 DAY MA 10 DAYS AGO
AND 50 DAY MA 10 DAYS AGO > 50 DAY MA 15 DAYS AGO
AND 50 DAY MA 15 DAYS AGO > 50 DAY MA 20 DAYS AGO
AND CLOSING PRICE IS > 40
AND 50 DAY AVERAGE VOLUME > 100,000
AND (UPPER BB LINE - LOWER BB LINE)/CLOSING PRICE > .05

Am I doing something wrog? Any help is greatly appreciated



yepher
359 posts
msg #34935
Ignore yepher
1/18/2005 10:57:16 PM

ham1198,

I am interested in knowing how you came up with the filter you posted...

Sorry to say, the filter you posted is not quite correct. Below is an example of one way you could code the filter you posted so SF can understand it. Interestingly SF syntax checker did not complain at all !?!

Fetcher[

set{b1, close - lower bollinger(20)}
set{b2, b1 / close}
set{bw1, upper bollinger(20) - lower bollinger(20)}
set{bw2, bw1 / close}

show stocks where b2 below .01
AND MA(50) above MA(50) 1 day ago
AND MA(50) above MA(60) 5 days ago
AND MA(50) 5 days ago above MA(50) 10 days ago
AND MA(50) 10 days ago above MA(50) 15 days ago
AND MA(50) 15 days ago above MA(50) 20 days ago
AND close above 40
AND average volume(50) above 100,000
AND bw2 above .05

]







ham1198
174 posts
msg #34936
Ignore ham1198
1/19/2005 10:04:52 AM

yepher:

Thanks for your reply. I had a feeling I was way off base. Where this came from was I was cleaning out my office and came upon an old article from 8/99 on "How to Develope a Trading System". Tp put it in a nutshell, the article wanted to make trades with the general prevailing trend. Trades were to be made for retracements during the trend. Lastly, downside risk was to be fairly low and would create not too many or too fews opportunities.

What I posted was what the author's ideas to put into a software program. He wanted to go long a stock in an uptrend when it was at/or near its lower Bollinger Band. He wanted the distance between the two BB to be equivalent to at least 5% of the share price. This kept you from being in slow, non-volatile stocks and it ensured the reward to risk ratio make it worth the effort.

Thanks again for your help. Your program pulled up 12 stocks this morning. Let's see how they do (ALV,CBH,CDWC,CRAI,DCX,FRE,GSK,NTLI,PRX,RDN,STT,UN)


kgriffen
49 posts
msg #34939
Ignore kgriffen
1/20/2005 1:35:12 AM

Interesting filter. All the stocks look like they are ready to roll over to the downside. Time to short?


kgriffen
49 posts
msg #34940
Ignore kgriffen
1/20/2005 1:38:02 AM

. . . almost forgot, SF will accept:

Fetcher[Bollinger Width(20,2) is above .05]




knowsenough
54 posts
msg #34943
Ignore knowsenough
1/21/2005 9:17:28 AM

OT: But, do you ever notice that SF limits don't matter?
I have some screens that although beyond SF's limits on indicator/s per say when debugged, do not produce the wanted results when corrected. So I just ignore the error flags. FWIW



SurfnDestiny
78 posts
msg #34989
Ignore SurfnDestiny
1/26/2005 11:21:57 PM

I`ve been messing with your B2 signal. I changed the B1 set command to the upper bollinger. Every match has the price touching the upper bollinger band though. Would the command: set{b1, close - upper bollinger(20)} cause all matches to touch the upper bollinger band. I would think that this only sets up the variable "b1". The B2 signal looks to have potential as an entry point signal. I`m having trouble with SF detecting the deep V shaped troughs though.


Fetcher[set{b1, close - upper bollinger(20)}
set{b2, b1 / close}

Show stocks where 2 day slope of B2 is > 2
and B2 1 day ago has been decreasing for 3 days 1 day ago
and price is above 1
and draw bollinger(20)
and date offset is 20
and volume is above 30000
]



When the b2 signal rapidly falls, a one day rise afterwards seems to be a pretty reliable entry point signal. But, everything returned only has the price on the upper bollinger.


SurfnDestiny
78 posts
msg #34990
Ignore SurfnDestiny
1/26/2005 11:33:08 PM

This one catches the V shape a little better. The steeper the walls of the V shape the better. Still, the price is stuck on the upper bollinger band though.

Fetcher[set{b1, close - upper bollinger(20)}
set{b2, b1 / close}

Show stocks where 2 day slope of B2 is > 2
and 2 day slope of B2 1 day ago is < -2 1 day ago
and price is above 1
and draw bollinger(20)
and volume is above 30000
and date offset is 15
]




StockFetcher Forums · General Discussion · Nice Filter but not sure programmed is correct<< >>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.