StockFetcher Forums · General Discussion · First red day (FRD) filter<< >>Post Follow-up
molecules mal
3 posts
msg #162003
Ignore molecules mal
modified
10/29/2025 2:04:25 AM

I want to code a filter for stocks that have been going up green multiple days in a row, and just today are red and broke below red/green. Preferably the stock opened green, and then over the course of the day dropped below red/green. How can I do this?

This code gives stocks that have gone up 4 days in a row:

show stocks where count(close is above open,4) equals 4

but I only want the previous days to be green, not the current day.

Thanks

xarlor
619 posts
msg #162005
Ignore xarlor
10/29/2025 3:54:54 PM

This should get you most of the way there.

Fetcher[
count(close 1 day ago is above open 1 day ago,4) equals 4
open > close 1 day ago
close < close 1 day ago
]



molecules mal
3 posts
msg #162007
Ignore molecules mal
modified
10/30/2025 4:49:10 AM

Thank you xarlor! Is there a way to only scan for stocks where over the past few days they've had a run of 40% or more total? When I ran the scan I got 7 pages of stocks. That's quite a bit!

xarlor
619 posts
msg #162008
Ignore xarlor
10/30/2025 9:29:19 AM

You may be shooting too high at 40%. Not many quality results.

You can easily change the run up value below. Change 1.40 to the percentage you want. So if you want 10% runup, then it would be 1.10.

Fetcher[

count(close 1 day ago is above open 1 day ago,4) equals 4
open > close 1 day ago
close < close 1 day ago

set{runup,close 4 days ago * 1.40}
close > runup

do not draw runup
]



molecules mal
3 posts
msg #162009
Ignore molecules mal
10/30/2025 3:47:14 PM

Thank you!

StockFetcher Forums · General Discussion · First red day (FRD) filter<< >>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.