| 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.
 
 
 
 
 
 | 
| 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.
 
 
 
 
 
 | 
| molecules mal 3 posts
 msg #162009
 - Ignore molecules mal
 | 10/30/2025 3:47:14 PM 
 Thank you!
 
 
 |