StockFetcher Forums · General Discussion · Basic Filter help<< >>Post Follow-up
seattle_guy
6 posts
msg #65231
Ignore seattle_guy
7/19/2008 12:20:04 PM

I am trying to write a basic filter that scans for stocks that showed a two green days (i.e close more than open for last two days)


Fetcher[
close today more than open today and
close 1 day before more than open 1 day before and
volume greater than 200000 and
price is above .5 and
price is below 20
]




Why does this pick up wrong ones also ? For example, F had a red day on July/17 and still this picked it. What am I missing ?

Thanks
seattle_guy



alf44
2,025 posts
msg #65233
Ignore alf44
7/19/2008 1:05:11 PM

Try this...


Fetcher[close greater than open and
close 1 day ago greater than open 1 day ago and
volume greater than 200000 and
price is above .5 and
price is below 20
]



-------------------------------------

Regards,

alf44


alf44
2,025 posts
msg #65234
Ignore alf44
modified
7/19/2008 1:14:35 PM

...actually...so you realize...

...it is possible to have the Close above the Open for the last 2 days...and yet NOT be "green" for the last 2 days !


You asked for this...

stocks that showed a two green days (i.e close more than open for last two days)

--------------------------------------------------------

That criteria...as you stated it above...doesn't insure that you have 2 consecutive HIGHER CLOSES...

...it only insures that on each of the last 2 days...that the Close is ABOVE the Open !

There IS a difference ! fwiw


Regards,

alf44



alf44
2,025 posts
msg #65235
Ignore alf44
modified
7/19/2008 1:20:03 PM

THIS filter...with the added line...

"close 1 day ago less than close"

DOES insure that you have BOTH...2 consecutive HIGHER Closes...AND...that on BOTH of the last 2 days...the Close was above the Open !!!

-----------------------------

Fetcher[close greater than open and
close 1 day ago greater than open 1 day ago and
close 1 day ago less than close and
volume greater than 200000 and
price is above .5 and
price is below 20
]



----------------------------------------------

Now you can have it both ways !

Regards,

alf44


chetron
2,817 posts
msg #65248
Ignore chetron
7/19/2008 5:29:31 PM

and if you want no red green candles in 2 then....


Fetcher[

close greater than open and
close 1 day ago greater than open 1 day ago and
close 1 day ago less than close and
close 2 day ago below close 1 day ago
volume greater than 200000 and
price is above .5 and
price is below 20
]



seattle_guy
6 posts
msg #65250
Ignore seattle_guy
7/19/2008 6:09:41 PM

alf44 - Thanks. You made a good point that I had overlooked.

chetron - Basically I was looking for a red candle followed by two increasing green candles. Something like below. I am trying to catch breakouts with this, but need to add some more criteria on the history on the picks before two days (flat line maybe).

Fetcher[
close greater than open and
close 1 day ago greater than open 1 day ago and
open greater than open 1 day ago and
close 1 day ago less than close and
close 2 days ago less than open 2 days ago and
open 2 days ago less than open 1 day ago and
volume greater than 200000 and
price is above .5 and
price less than 50
]



Thanks
SG

chetron
2,817 posts
msg #65252
Ignore chetron
modified
7/19/2008 6:25:19 PM

1 red and 2 green....


Fetcher[

/* tachakawa */

close greater than open and
close 1 day ago greater than open 1 day ago and
close 1 day ago less than close and
close 2 day ago below close 1 day ago
close 2 day ago below open 2 day ago
close 2 day ago below close 3 day ago

volume greater than 200000 and
price is above .5 and
price is below 20

]



seattle_guy
6 posts
msg #65260
Ignore seattle_guy
7/19/2008 9:26:11 PM

Thanks chetron. I was trying to find oversold bounce, but I need to do some more work. I am looking into other threads also. The thing with backtesting is that it works well on bull months and bad on bear months :) Also shrinking the default window to 10days or so in backtesting usually yield poor results. What kind of returns would generally indicate a potential strategy ? Just a rough estimate based on your experience.

Fetcher[close greater than open and
close 1 day ago greater than open 1 day ago and
open greater than open 1 day ago and
close 1 day ago less than close and
close 2 days ago less than open 2 days ago and
open 2 days ago less than open 1 day ago and
RSI(15) below 50 and
volume greater than 200000 and
price is above .5 and
price less than 50
]



chetron
2,817 posts
msg #65266
Ignore chetron
7/20/2008 8:15:15 AM

trade with trend, if this filter is good during an uptrend, then use it in an uptrend. now all you need is a bear filter for the down trend. the trend is your friend is true.



WALLSTREETGENIUS
983 posts
msg #65271
Ignore WALLSTREETGENIUS
modified
7/20/2008 10:48:17 AM

As much as it PAINS me to say it, I do have to give credit where credit is due! Very ctreative coding "alf", and equally creative approach...and I wish you would contribute more like this. That's what's great about this site....we learn something new everyday. Yuk! There....I said it! I gotta go brush my teeth again...I think some of that is still in my mouth...lol



- RIGGS -

StockFetcher Forums · General Discussion · Basic Filter help<< >>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 2016 - 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