StockFetcher Forums · Filter Exchange · Stock that's been on MA50 for last 5 days<< >>Post Follow-up
hballa
18 posts
msg #161007
Ignore hballa
modified
4/9/2024 11:47:49 AM

Friends,
I am looking for filter that can get stocks thta are on MA 50 for last 5 days. Please find the attached screenshot. Can you please help?

sorry I am unable to attache screenshot. for ex LASE stock

Mactheriverrat
3,135 posts
msg #161009
Ignore Mactheriverrat
4/9/2024 6:15:36 PM

Submit
Fetcher[
apply to symlist(lase)
draw ma(50)

/* ma50 is number of consecutive days ma(50) above (+)/below(-) previous MA(50) */
set{ma5050b,days( ma(50) is above MA(50) one day ago ,250)}
set{ma5050a,days( ma(50) is below MA(50) one day ago ,250)}
set{ma50, ma5050a - ma5050b} and add column ma50 {ma50}
do not Draw ma5050
Set{cntma5050,count( ma(50) > ma(50) one day ago ,1)}
draw cntma5050
Set{cntma5050b,count( ma(50) < ma(50) one day ago ,1)}
draw cntma5050b

]



Submit
Fetcher[

show stocks where price is above ma(50)
volume is above 300000
market is not etf
market is not otcbb
draw ma(50)

/* ma50 is number of consecutive days ma(50) above (+)/below(-) previous MA(50) */
set{ma5050b,days( ma(50) is above MA(50) one day ago ,250)}
set{ma5050a,days( ma(50) is below MA(50) one day ago ,250)}
set{ma50, ma5050a - ma5050b} and add column ma50 {ma50}
do not Draw ma5050
Set{cntma5050,count( ma(50) > ma(50) one day ago ,1)}
draw cntma5050
Set{cntma5050b,count( ma(50) < ma(50) one day ago ,1)}
draw cntma5050b


]



hballa
18 posts
msg #161010
Ignore hballa
4/10/2024 6:25:03 AM

Thanks so much Mactheriverrat, it works great. what I observed from the list is, MACD divergence should be above zero and MACD cross over should happen,

Can you please try to add these 2 conditions?

xarlor
562 posts
msg #161012
Ignore xarlor
4/10/2024 3:41:25 PM

This returns stocks that have been trading no more than 1% away from the MA(50) in each direction for the last 5 days. MACD divergence crossed above 0 in the last 5 days and is currently still above 0.

Fetcher[
not etf
set{maabove,ma(50) * 1.01}
set{mabelow,ma(50) * .99}
set{closeup,count(close < maabove,5)}
set{closedown,count(close > mabelow,5)}
closeup > 4
closedown > 4

MACD Histogram(12,26,9) > 0
MACD Histogram(12,26,9) crossed above 0 within last 5 days

draw ma(50)
do not draw closeup
do not draw closedown
]



hballa
18 posts
msg #161015
Ignore hballa
4/12/2024 7:41:45 AM

Thanks

StockFetcher Forums · Filter Exchange · Stock that's been on MA50 for last 5 days<< >>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.