ssmike123 9 posts msg #37920 - Ignore ssmike123 |
9/12/2005 9:04:27 PM
I need help with writing a gap search statement with these conditions:
1.Gap has happened between 3-20 days ago.
2.The high of first day of gap has not been broken for past 3-20 days
3.The low of first day of gap has not been broken for past 3-20 days.
Essentially we had a gap and then consolidation that is from 3-20 days. A flag pattern
A statement like "open is more than 3 percent above high from 1 day ago and volume is more than 100 percent above average volume(10) and close is greater than open" can fined today's gaps.
Please help me complete the search based on above criteria.
Thanks
Shawn
|
nikoschopen 2,824 posts msg #37925 - Ignore nikoschopen |
9/13/2005 2:36:54 AM
This is just a modificattion of Railwhore's Price Channel filter (http://www.stockfetcher.com/stockdb/fetcher?p=forum⊂=view&fid=1002&tid=37902). Other than adding the gap & volume parameter, his filter is left intact.
set{gappy, days(close-to-open gap is above 3,20)}
gappy is above 2
set{x,high 4 week high}
set{y,low 4 week low}
set{z,x - y}
show stocks where z is below .51
and high is below x for last 2 weeks
and low is above y for last 2 weeks
close above 2
set{volratio, volume / avgvol(10)}
volratio is above 2
I should note in passing that there is a problem writing a filter of this kind. Of the three conditions you've laid out, only (1) is possible. (2) and (3) are not, unless the gap occurs exactly 20 days ago. If that were the case, then you could use the count() function with set expression to extract stocks that are rangebound. But (1) states that it could happen anytime within the timeframe of 20 days. Perhaps somebody with more expertise than me could offer an answer in a different light.
|
yepher 359 posts msg #37941 - Ignore yepher |
9/14/2005 12:33:03 AM
If you just want a gap and a triangle try this:
|
ssmike123 9 posts msg #37967 - Ignore ssmike123 |
9/14/2005 10:48:43 PM
hi yeper; your statment does not do it. A statment like will produce a list of gaps that is 5 days old,and next four days, some may be a flag and most are not. The # days may be changed in the search to 5, then 6, then 7....to fined flags, or triangles. It just takes more time to go through days and each chart!
|