MikeB60046 43 posts msg #31581 - Ignore MikeB60046 |
4/1/2004 11:39:26 AM
I am trying to create a filter that finds breakouts based upon diverging triangles. I can't seem to find how to get a count of the number of times the low touched the lower diverging triangle bottom and the high touched the higher diverging triangle top. My filter appears below but the count does not seem to be working. Any help would be greatly appreciated. Thanks.
pattern is diverging triangle(60) and count(low touches diverging triangle bottom,60) is above 2 and count(high touches diverging triangle top,60) is above 2
and close is above ema(13)
|
cegis 235 posts msg #31583 - Ignore cegis |
4/1/2004 1:55:08 PM
Mike,
I change the filter to
(which added "(60)" after the "triangle" in each of the count()'s), and the match count went from 15 to something over 120. So, I'd have to ask if the missing "(60)"s are your problem?
One potential issue here is, I believe the condition within the count() function is evaluated for each of the days it tests, so the value of "diverging triangle(60) bottom" or "diverging triangle(60) top" *may* be changing while the count() is being processed. I am *not* positive that's how count() works, but it would seem to explain some of the results I've seen it produce.
Does anyone *know* if that's how count() works, and if so, is there a way to "fix" the indicator's value (in this case, diverging triangle(60) bottom) to "today's" value, then perform the count()?
HTH,
C
|
MikeB60046 43 posts msg #31585 - Ignore MikeB60046 |
4/1/2004 4:09:19 PM
H:
It appears that the count portions of the screen is not working at all. If you remove them you get the same results.
It may be I cannot do what I want to.
Thanks for your help.
|
cegis 235 posts msg #31586 - Ignore cegis |
4/1/2004 7:16:24 PM
Mike,
If removing a condition returns the same results, it (generally) means that StockFetcher can't figure out what you mean, so it ignores it. Apparently, it doesn't like the "(60)" I added to the counts. Taking them out returns only a handful of stocks, as opposed to over 100. Sorry for the misinformation...
I'm guessing that the issue is the re-evaluation of the condition within the count() function (as I described in my prior post) that's causing you the difficulty...
Unless there's a way to keep the value of "diverging triangle bottom" constant within the count() function, I don't think you can get exactly what you're looking for...
HTH - and sorry I couldn't help more...
C
|