jayzz 45 posts msg #102908 - Ignore jayzz |
10/12/2011 3:15:52 PM
Hey !
I want to see price crossed the MA(30) today, BUT not crossed the MA(30) more than 2 times for example the last 40 days.
How would a filter for that sound like..?
Thanks for any help :o)
|
straken 469 posts msg #102909 - Ignore straken |
10/12/2011 3:33:04 PM
This is for a 30dma cross today that is the first cross in 40 days. if you want to change the time period edit the 40 in the second set cmd line. If you want to allow for more crosses change the 2 on the ct30a line to 3 then your allowing for 2 crosses over that time period.
|
TheRumpledOne 6,411 posts msg #102910 - Ignore TheRumpledOne |
10/12/2011 6:00:15 PM
Shouldn't it be:
|
traderseb 36 posts msg #102917 - Ignore traderseb |
10/13/2011 6:30:09 AM
Doesn't that include those that didn't cross above the MA(30)? Zero counts are included where they should be excluded.
|
duke56468 683 posts msg #102918 - Ignore duke56468 |
10/13/2011 10:16:22 AM
straken..........Thanks, filter seems to work perfectly.
|
straken 469 posts msg #102922 - Ignore straken |
10/13/2011 2:23:27 PM
TRO > your filter catches the primise but doesn't exclude the multiple or null value over the time period.
Duke > your very welcome.
|
TheRumpledOne 6,411 posts msg #102926 - Ignore TheRumpledOne modified |
10/13/2011 4:11:32 PM
I was just talking about the cross above set statements vs the close above.
|
straken 469 posts msg #102943 - Ignore straken |
10/14/2011 3:49:27 PM
TRO either can work fine. I've been including a lot more exclusive delimeters in many filters these days. It has improved many of the results and filtered out a lot of the trash. I do find stockfinder a better screener due to its capabilities, but fetcher can hold some of its own merits. I've been using a lot of your works here to rewrite many of my older filters including the set logic parameters that I didnt know fetcher was able to compute. If I could just find the time to run some backtests on some of them I think I have some works of art in progress. I have found some new love with the RVI(5,3) and (3,2) combo combined with the IMI(3) & (2) respectively. An IMI(3) cross of the RVI(5,3) when the cross occurs above the 50% line has really yielded some nice intraday signals. I test the filters here because they're easier to write quickly and if the results of BT looks promising I write the filter for RT use on stockfinder. If fetcher would ever offer a realtime version they could name their price for the easy to write code, but I heard thats not in the future for them.
GLTY
Jack
|