StockFetcher Forums · General Discussion · Is there a way to generate a count column?<< >>Post Follow-up
dashover
224 posts
msg #114239
Ignore dashover
6/28/2013 12:41:05 AM

How many days since a stock close > ma (20)

for example...

Thanks!

four
5,087 posts
msg #114256
Ignore four
modified
6/28/2013 1:21:56 PM

Fetcher[
/*
http://www.stockfetcher.com/forums/Indicators/Days-Since-DAYS/34496

- Returns the number of days since the event most recently occurred
- Days(indicator,period)
*/

set{x, days(close > ma(20),100)}
add column x between 2 and 5

draw ma(20)
sp500
close > 12
volume above 1231231
sort column 5 descending

]



StockFetcher Forums · General Discussion · Is there a way to generate a count column?<< >>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 2022 - 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.