StockFetcher Forums · Filter Exchange · crossed MA(30)<< >>Post Follow-up
42 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)

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.

close > 1
and average volume(30) is above 500000
close above ma(30)

set{ct30, count(close > ma(30),1)}
set{ct30a, count(close > ma(30),40)}

add column ct30
add column ct30a

ct30a < 2

6,364 posts
msg #102910
Ignore TheRumpledOne
10/12/2011 6:00:15 PM

Shouldn't it be:


set{X30, count(close crossed above ma(30), 40)}

X30 below 3

add column X30


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.

683 posts
msg #102918
Ignore duke56468
10/13/2011 10:16:22 AM

straken..........Thanks, filter seems to work perfectly.

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.

6,364 posts
msg #102926
Ignore TheRumpledOne
10/13/2011 4:11:32 PM

I was just talking about the cross above set statements vs the close above.

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.



StockFetcher Forums · Filter Exchange · crossed MA(30)<< >>Post Follow-up

*** Disclaimer *** does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. does not recommend particular securities., Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.

Copyright 2018 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.