ckz8780 5 posts msg #112884 - Ignore ckz8780 modified |
4/21/2013 3:10:14 PM
Hello,
I'm trying to write a filter for stocks that are repeatedly tapping the same level for the last X days but have not dropped below it. I have tried defining a reference point, like
set{base, low 30 day low} or
set{base, 30 day low}
but those do not seem to do quite what I'm looking for.
Then I went to a specific date and did this:
set{basepoint, date(20130401, low)}
and tried to reference it as follows:
show stocks where low above basepoint for the last X days
but the results seem sort of random. Some of them seem accurate but others there are clear violations of the rule.
I have also tried setting a "diff" variable equal to the close minus the basepoint, and then used stuff like
show stocks where diff above 0 for the last X days
but again, the results seem random, with some following the rules and others clearly violating them. It seems like this should be easier and perhaps I'm overcomplicating it, but basically what I'm looking for is a filter that will set a specific base point (like the low 15 or 30 or 45 days ago), and find stocks that have not dropped below that point since then (i.e. lows never below that point), but ideally have come close or hit it a few times, and are now sitting close to it as of the most recent close. The obvious reasoning would be to watch these stocks for when they break below the basepoint, and short them for a quick daytrade.
Any input or anything else I can explain that might make this easier to help with? Thanks!
Chris
|
mktmole 325 posts msg #112893 - Ignore mktmole |
4/22/2013 8:55:22 AM
hi ckz
You have to define the low price target and starting ref day. "near, touched above, below," etc. there is a help section on this topic.
The example below shows how to compare the % todays low is above ( and is not below) yesterdays low.
Change the % to raise or low the target range.
Add another "set" command to add lookback days 'chain on' another day...
Also check out 'Days Since' command in the forums for other ideas
mm
|
ckz8780 5 posts msg #112990 - Ignore ckz8780 |
4/26/2013 5:59:01 PM
Hey mktmole - thanks for the reply! I actually ended up getting a pretty decent scan going starting from yours (believe it or not)
Here is my code, though it looks nothing like what you gave me, it gives some pretty cool results. Ideas on how to tweak it are appreciated if anyone sees a way to make it more accurate!
not etf
chart-length is 90 days
set{shortfloor, low 45 day low 1 day ago}
set{medfloor, low 45 day low 15 days ago}
set{medlongfloor, low 45 day low 30 days ago}
set{longfloor, low 45 day low 45 days ago}
set{shortceiling, high 45 day high 1 day ago}
set{medceiling, high 45 day high 15 days ago}
set{medlongceiling, high 45 day high 30 days ago}
set{longceiling, high 45 day high 45 days ago}
draw price line at shortfloor
add column shortfloor
/*draw price line at medfloor
draw price line at medlongfloor
draw price line at longfloor
draw price line at shortceiling
draw price line at medceiling
draw price line at medlongceiling
draw price line at longceiling
add column shortfloor
add column medfloor
add column medlongfloor
add column longfloor
add column shortceiling
add column medceiling
add column medlongceiling
add column longceiling
draw shortfloor on plot price
draw medfloor on plot price
draw medlongfloor on plot price
draw longfloor on plot price
draw shortceiling on plot price
draw medceiling on plot price
draw medlongceiling on plot price
draw longceiling on plot price*/
shortfloor above longfloor
shortceiling below medceiling
low above shortfloor
low above medfloor
low less than 1.5% above shortfloor
high below shortceiling for the last 10 days
close below open
volume 30 day low above 20000
|
johnpaulca 12,036 posts msg #113003 - Ignore johnpaulca |
4/27/2013 12:21:39 AM
clickable.....
|
Mactheriverrat 3,153 posts msg #113005 - Ignore Mactheriverrat modified |
4/27/2013 3:02:16 PM
rsi(2) below 1
Price above 1
and fast stochastic fast %k(15,5) below 10
Volume above 300000
Not might be very many but search it about a week back and JOEZ was under RSI(2) - gained about 19% on rebound. Plus being in this overbrought market when the correction happens might not be a bad filter to have for rebounds
You might do a search of Stockfetcher and Google of
Muddy's RSI(2)
Here's a old Yahoo news group that still has all the files of Muddy's RSI(2) and bottom filter- Look in the files section as the files are still all there. You will have to join but there is a treasure trove of info on there. No much goes on there anymore but all the downloadable files are all still there
Just my 2 cents!
Yahoo news group on RSI(2) filter.
|