StockFetcher Forums · Filter Exchange · trending below ma 20 for weeks then pop to 50 ma<< >>Post Follow-up
lfrisch1
4 posts
msg #142795
Ignore lfrisch1
3/18/2018 12:59:53 AM

Hi all,

I am new to SF and was hoping someone could help me code this. I am trying to find stocks that have been trending below ma20 for at least 3 to 4 weeks and now the stock over last few days has made a sharp increase above ma20, to lets say ma50 or ma40...

the idea is, that if its been trending below ma20 for a while and has now moved up sharply, the stock is probably going to make a quick short term move up.

So, its below ma20 for several weeks, then pops sharply above ma 20 and the idea is that you want to buy the next retace, if at all possible to code the last retrace back to ma 20.

thank you all in advance.

Larry

snappyfrog
178 posts
msg #142796
Ignore snappyfrog
3/18/2018 6:24:15 AM

Something simple to start with:

Fetcher[
show stocks where close < MA(20) between 10 and 60 days ago
and close > MA(40) in the last 10 days
and close < MA(20)
]



dustinb
29 posts
msg #142801
Ignore dustinb
3/18/2018 4:20:33 PM

Snappy- I think your first line because of the way it's worded is only picking up stocks between prices of 10 and 60 rather than days? Check me on that though...

lfrisch1
4 posts
msg #142805
Ignore lfrisch1
3/19/2018 1:10:01 PM

Thank you Snappy. I will give it a try now and let you know hoe it works.

thank you very much!

lfrisch1
4 posts
msg #142807
Ignore lfrisch1
3/19/2018 1:27:45 PM

I am trying something like this now but doesnt seem to be working. can you help with code. ty

show stocks where close < MA(20) for last 20 days beggining between 10 days ago and 60 days ago
and close > MA(40) in the last 5 days
and close < 5

and close > 1


four
5,072 posts
msg #142809
Ignore four
modified
3/19/2018 2:14:50 PM



Fetcher[
/*
So, its below ma20 for several weeks, then pops sharply above ma 20 and the idea is that you want to buy the next retace, if at all possible to code the last retrace back to ma 20.

Here is the first part of request and is missing the 2nd part where you wish to code the subsequent retrace.
Used 10 days = 2 weeks for below ma(20) ---- change to any variable you wish
*/

set{c1, count(close 1 day ago < ma(20) 1 day ago,10)}
c1 > 9 and do not draw c1
draw ma(20)
low crossed above ma(20)
volume 1 day ago > 12340
low > 10
]



lfrisch1
4 posts
msg #142810
Ignore lfrisch1
3/19/2018 3:10:28 PM

Thank you four for your input. I will play with it and advise.

thank you

four
5,072 posts
msg #142849
Ignore four
3/21/2018 8:15:18 PM

welcome

snappyfrog
178 posts
msg #142859
Ignore snappyfrog
3/22/2018 5:11:53 PM

dustinb, you are right. Thanks


StockFetcher Forums · Filter Exchange · trending below ma 20 for weeks then pop to 50 ma<< >>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 2018 - 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