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)
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...
-------------------------------------
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 !!!
-----------------------------
----------------------------------------------
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....
|
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).
Thanks
SG
|
chetron 2,817 posts msg #65252 - Ignore chetron modified |
7/19/2008 6:25:19 PM
1 red and 2 green....
|
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.
|
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 -
|