StockFetcher Forums · General Discussion · Desperately need filter help<< >>Post Follow-up
ivycapman
17 posts
msg #136071
Ignore ivycapman
5/26/2017 10:03:46 AM

I wonder if anyone can tell me how to write a filter that gives a list of stocks that meet all of my criteria ( a,b,c,d ) today but did not meet all of them yesterday ( probably met some of them but not all of them )

spauken
47 posts
msg #136073
Ignore spauken
5/26/2017 10:40:21 AM

Write the filter to show you the stocks that meet all your criteria. After you run the filter, back it up one day. Whatever stocks fall off the list are the ones that met all your criteria today, but not yesterday.

Kevin_in_GA
4,599 posts
msg #136078
Ignore Kevin_in_GA
5/26/2017 3:13:32 PM

You need to create a new user-defined variable that counts each criterion, and returns the sum. Then just require that the sum be four today but below four yesterday.

Example:

Fetcher[
set{criterion1, count(close above ma(200),1)}
set{criterion2, count(rsi(2) above 90,1)}
set{criterion3, count(close above close 1 day ago, 1)}
set{criterion4, count(Williams %R(14) above -30, 1)}

set{sum1, criterion1 + criterion2}
set{sum2, sum1 + criterion3}
set{sum, sum2 + criterion4}
sum above 3
sum 1 day ago below 4
]



StockFetcher Forums · General Discussion · Desperately need filter 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 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.