StockFetcher Forums · General Discussion · Count function help<< >>Post Follow-up
dwiggains
391 posts
msg #99473
Ignore dwiggains
modified
3/4/2011 9:34:48 AM

I know this is easy but I cannot get it to work.

This is what I want

Count the days Close has been greater than ma (20).
Close > ma (20) for how many days.

Thanks
See ya
David

wantonellis
102 posts
msg #99475
Ignore wantonellis
modified
3/4/2011 9:49:43 AM



TheRumpledOne
6,359 posts
msg #99483
Ignore TheRumpledOne
modified
3/4/2011 11:56:21 PM

Fetcher[

set{E20b,days(close is above ma(20),100)}
set{E20a,days(close is below ma(20),100)}
set{CxM20, E20a - E20b}

add column CxM20

close is between 1 and 10

avg volume(90) above 1000000

Sort column 5 descending
]



If you want to know how many days in a row the close has been above/below the ma(20) since the last crossover, this will do it.

Make sure you look at my BASIC FILTER FOR NEWBIES AND OLD PROS to see how to code most things you'll need in SF.



dwiggains
391 posts
msg #99489
Ignore dwiggains
3/5/2011 9:41:24 AM

Thank you --- Thank you


See ya
David

StockFetcher Forums · General Discussion · Count function 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