StockFetcher Forums · General Discussion · Flag filter<< >>Post Follow-up
molecules mal
15 posts
msg #162041
Ignore molecules mal
modified
11/21/2025 11:33:19 PM

NUVB recently made a flag and ripped. It made a flagpole from 3.44 on 10/20 to 5.4 on 10/28, then formed the flag down to 4.62 on 11/18 before ripping on 11/19. I'd like to build a filter to catch bull flags like NUVB. I made two, but I missed NUVB for some reason. To be specific, I want the flag to be level or have a slight downtrend.

xarlor
635 posts
msg #162042
Ignore xarlor
11/22/2025 2:48:30 PM

So, you have two flag filters, want help writing a flag filter, but don't post your existing filters so we have to write one from scratch for you? C'mon guy, how about a little forum help etiquette?

This got NUVB on 11/05/25. Don't know if that's too early for your liking.

Fetcher[
close > 1
average volume(30) > 100000
slope of average volume(5) < 0

close gained more than 15% over the last 10 days
close reached a new 60-day high within the last 10 days
linear regression slope(5) between -0.5 and 0.5

close < high 5 days ago
high decreased less than 5% over the last 5 days
low decreased less than 10% over the last 5 days

set{h70,high 10-day high * .70}
set{h90,high 10-day high * .90}
close is between h70 and h90

do not draw close 60-day high
do not draw linear regression slope(5)
do not draw slope of average volume(5)
do not draw average volume(5)
do not draw average volume(30)
]



molecules mal
15 posts
msg #162045
Ignore molecules mal
modified
11/25/2025 7:29:48 AM

Sorry! Here's the filters I did.

Fetcher[
close > 1
set{ma5a, ma(5) * .95}
close > ma5a
set{ma5b,ma(5) * 1.05}
close < ma5b
ma(50) > ma(200)

set{runup,close 5 days ago * 1.2}
close > runup

do not draw ma(50)
do not draw ma(200)
do not draw ma5a
do not draw ma5b
do not draw runup
draw ma(5)
draw ma(10)
]



Fetcher[
close > 1
close > ma(10)
set{ma10x,ma(10) * 1.05}
close < ma10x
ma(50) > ma(200)

set{runup,close 10 days ago * 1.3}
close > runup

do not draw ma(50)
do not draw ma(200)
do not draw ma10x
do not draw runup
draw ma(5)
]



xarlor
635 posts
msg #162046
Ignore xarlor
11/25/2025 9:53:58 AM

I see what you're going for, but your filters are too restrictive for proper flag set ups. They're also returning some results that I wouldn't really consider a flag pattern.

Here is an even looser flag filter than my original one. Although it returns a lot more results, it gets NUVB on multiple dates throughout the flag formation. This makes it stand out if you're keeping track. It picked it up on these dates:

10/30/25
10/31/25
11/04/25
11/05/25
11/10/25

Fetcher[
close > 1

close gained more than 15% over the last 15 days
close reached a new 60-day high within the last 10 days

set{trigger1,high 5-day high minus close}
set{trigger2,ATR(5) * 0.75}
trigger1 > trigger2

close > ma(30)
ma(30) > ma(30) 5 days ago
MACD Histogram(8,17,9) 1 day ago < MACD Histogram(8,17,9) 2 days ago
close 1 day ago < close 2 days ago
]



And if you have the advanced subscription, here is the same filter that draws tick marks at the bottom each time a flag is detected. See the chart at the end for NUVB.

Fetcher[
set{x1,count(close > 1,1)}
set{x2,count(close gained more than 15% over the last 15 days,1)}
set{x3,count(close reached a new 60-day high within the last 10 days,1)}

set{trigger1,high 5-day high minus close}
set{trigger2,ATR(5) * 0.75}
set{x4,count(trigger1 > trigger2,1)}

set{x5,count(close > ma(30),1)}
set{x6,count(ma(30) > ma(30) 5 days ago,1)}
set{x7,count(MACD Histogram(8,17,9) 1 day ago < MACD Histogram(8,17,9) 2 days ago,1)}
set{x8,count(close 1 day ago < close 2 days ago,1)}

set{flag1,x1 * x2}
set{flag2,flag1 * x4}
set{flag3,flag2 * x5}
set{flag4,flag3 * x6}
set{flag5,flag4 * x7}
set{flag,flag5 * x8}
flag > 0
]





molecules mal
15 posts
msg #162049
Ignore molecules mal
modified
11/25/2025 1:48:17 PM

This is great!

StockFetcher Forums · General Discussion · Flag 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.