StockFetcher Forums · General Discussion · count of down two days in a row<< >>Post Follow-up
jcollins01
29 posts
msg #92873
Ignore jcollins01
5/18/2010 11:08:49 AM

I want to count how many times a stock has been down two days in a row is the last 60 days , but this doesn't work. Any ideas?

[set {dds, count (close less than close one day ago and close one day ago less than close two days ago,60)}
price greater than 1
add column dds

four
5,087 posts
msg #92875
Ignore four
modified
5/18/2010 2:40:47 PM

perhaps...

Fetcher[
set{ddsx, count(close 1 day ago < close 2 days ago,60)}
set{ddsz, count(close < close 1 day ago,60)}

add column ddsx
add column ddsz


price > 1
]



then this...

Fetcher[

set{ddsx, count(close 1 day ago < close 2 days ago,1)}
set{ddsz, count(close < close 1 day ago,1)}

set{both, ddsx + ddsz}
set{countBoth, count(both equals 2, 60)}

add column ddsx
add column ddsz
add column both
add column countBoth

price > 1
]



StockFetcher Forums · General Discussion · count of down two days in a row<< >>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.