StockFetcher Forums · General Discussion · Stat Filter - Need Help<< >>Post Follow-up
knotam
7 posts
msg #78195
Ignore knotam
8/28/2009 7:14:15 PM

I am trying to write a stat filter that tells me the following:

close 5 days ago crossed above MA(5)
close today is above close 5 days ago

I want to count how many times the above happened in the last 100 days (looking for short term swing trade candidates, but once I know how to code the above I can do a lot more with it as well). I read the AND / OR thread from TRO, but can't quite get the logic correct. What I would like to do is:

set{v1, count(close is above close 5 days ago and close 5 days ago crossed above MA(5),100}

unfortunately, SF won't do the AND in there. Can anyone help?

Eman93
4,659 posts
msg #78284
Ignore Eman93
8/30/2009 2:14:16 PM

You cant use and/or in a filter.......


close 5 days ago crossed above MA(5)
close today is above close 5 days ago

I want to count how many times the above happened in the last 100 days (looking for short term swing trade candidates, but once I know how to code the above I can do a lot more with it as well). I read the AND / OR thread from TRO, but can't quite get the logic correct. What I would like to do is:

set{v1, count(close is above close 5 days ago and close 5 days ago crossed above MA(5),100}

++++++++++++++++++++++++++++++++++++++++++


Fetcher[set{v1, count(close > close 5 days ago, 100)}

set{v2, count(close > ma(5), 100)}

add column v1
add column v2
]



StockFetcher Forums · General Discussion · Stat Filter - Need Help<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com 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. StockFetcher.com does not recommend particular securities. StockFetcher.com, 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 2016 - 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