| 1up1down 1 posts
 msg #161658
 - Ignore 1up1down
 | 3/12/2025 6:31:52 AM 
 Hello all,  Interesting markets! I'm trying to write a filter for a bear flag, and not having much luck.
 Here it is:
 show all stocks that had new 12 week low 4 days ago and low 3 days ago was < 1.5% above low 4 days ago and low 3 days ago was < 1.5% below low 2 days ago and low 2 days ago was < 1.5% above low 3 days ago and low 2 days ago was < 1.5% below low 3 days ago and low 1 day ago was < 1.5% above low 2 days ago and low 1 day ago was < 1.5% below low 2 days ago and low today was < 1.5% above low 1 day ago and low today is < 2% below low 1 day ago and  low  4 days ago was > $10.
 
 Anyone have a better way to do this?
 
 
 | 
| xarlor 619 posts
 msg #161660
 - Ignore xarlor
 | 3/12/2025 9:14:31 AM 
 I *think* this is what you're going for, but not entirely certain.
 
 
 
 
 
 | 
| TheRumpledOne 6,529 posts
 msg #161663
 - Ignore TheRumpledOne
 | 3/12/2025 1:13:38 PM 
 ChatGPT:
 
 write a stockfetcher filter for bear flag
 
 ChatGPT said:
 A bear flag is a continuation pattern that occurs after a strong downward price move, followed by a consolidation (flag), and then a potential continuation downward. Below is a StockFetcher filter to scan for bear flag patterns:
 
 
 
 
 
 Explanation of the Criteria:
 Strong Downward Move: Price drops at least 10% over the last 5 days, ensuring a sharp decline.
 Consolidation: Price remains between Bollinger Bands (20) and within 10% of the 5-day high, forming the "flag."
 Overall Downtrend: Moving averages confirm the bearish trend (MA20 < MA50 < MA200).
 Liquidity Filter: Ensures average volume is above 100,000 to avoid illiquid stocks.
 
 
 |