StockFetcher Forums · Filter Exchange · A filter to find bullish MACD divergence<< >>Post Follow-up
stockfetcher2022
5 posts
msg #161997
Ignore stockfetcher2022
10/22/2025 5:38:00 PM

Hi Stockfetchers:
Can you please help me build a filter that will find stock charts similar to SABR from August 2025 to present? The price needs to be going sideways or falling while the MACD EMA lines are increasing and approaching the zero line (but not above the zero line). A 2 to 3 month divergence is ideal.
Thank you!


http://charts.stockfetcher.com/sfchart/07vQrSjLhn.png


xarlor
615 posts
msg #161998
Ignore xarlor
10/23/2025 1:12:28 PM

Room for customization. You can tighten the channel for stricter or looser sideways movement. Also, you can tune the timeframes to taste

Fetcher[

/* MACD Fast Line Rising Under Zero While Price Flat/Falling */
average volume(30) > 100000
close > 2

/* Price flat or slightly declining over 2 to 3 months */
set{channel1,close 50 days ago * 1.20}
set{channel2,close 50 days ago * 0.85}
close 50-day high < channel1
close 50-day low > channel2
close 60 days ago > channel1

/* MACD Fast Line rising but still below zero */
MACD Fast Line(12,26,9) > MACD Fast Line(12,26,9) 20 days ago
MACD Fast Line(12,26,9) > MACD Fast Line(12,26,9) 40 days ago
MACD Fast Line(12,26,9) <= 0.05

/* Slow line rising too, confirming trend shift */
MACD Slow Line(12,26,9) > MACD Slow Line(12,26,9) 20 days ago
MACD Slow Line(12,26,9) < 0

/* Lines converging (histogram tightening toward zero) */
set{var1,abs(MACD Fast Line(12,26,9))}
set{var2,var1 - MACD Slow Line(12,26,9)}
set{var3,var1 - MACD Slow Line(12,26,9) 20 days ago)}

/* Prioritize strongest rising momentum */
set{momentum,MACD Fast Line(12,26,9) - MACD Fast Line(12,26,9) 40 days ago}
add column momentum
sort column 5 descending

draw price line at channel1
draw price line at channel2

do not draw channel1
do not draw channel2
do not draw close 50-day high
do not draw close 50-day low
]



stockfetcher2022
5 posts
msg #161999
Ignore stockfetcher2022
modified
10/23/2025 2:50:14 PM

Hi Xarlor,
It's a work of art, you nailed it!
Thank you, that is incredible.
Thanks,
Stockfetcher2022

StockFetcher Forums · Filter Exchange · A filter to find bullish MACD divergence<< >>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.