StockFetcher Forums · Filter Exchange · 12 week momentum<< 1 2 >>Post Follow-up
greg00623
14 posts
msg #160691
Ignore greg00623
modified
12/1/2023 7:42:33 AM

I'm messing around with this one if anyone wants to tweak on it. It triggers a buy when close crosses above 12 week high/low average.


Fetcher[/* Shows Current location of a stock in respect to it's 12 week high and low */

set{LOW12, close 12 week low}
set{HIGH12, close 12 week high}
set{SPREAD12, HIGH12 + LOW12}
set{SPREADAVG, SPREAD12 / 2}
set{RANGE, HIGH12 - LOW12}
set{RANGE1, RANGE / LOW12}
set{LOCATION12, close / SPREADAVG}
set{POSITION, LOCATION12 * 100}

add column POSITION
add column SPREADAVG
add column RANGE1

and sort column 5 descending

/* Add your criteria here */

and Average Volume(90) is above 10000000
and close is above 10
and close is below 50
and RANGE1 is greater than .2
and POSITION crossed above 100
and market is not ETF
]





glgene
613 posts
msg #160692
Ignore glgene
12/2/2023 3:15:49 PM

I like it, I like it. Just one question so far…

There are 13 weeks in a quarter. Why did you choose 12 weeks in the calculations? Not being critical; what am I missing?

Thank you.

Gene in FL



Mactheriverrat
3,135 posts
msg #160693
Ignore Mactheriverrat
modified
12/3/2023 2:16:45 PM

Could be because there are 60 days in a trading quarter more or less.
13 X 5 = 65 days
12 X 5 = 60 days

greg00623
14 posts
msg #160694
Ignore greg00623
12/4/2023 5:35:11 AM

Not missing anything, I pulled the 12 week math off the top of my head. I did experiment with different time frames, but this time frame seems to work best so far. But I posted it for you guys to tweak on to see if we could improve it any more.

glgene
613 posts
msg #160695
Ignore glgene
12/4/2023 11:59:30 AM

Greg — Thanks for the follow-up. Besides 12 weeks, what other “weeks durations ” did you try? Just curious.

I like the focus of your script!

Gene in FL

greg00623
14 posts
msg #160696
Ignore greg00623
12/4/2023 1:07:43 PM

I tried a 4 week range and I think a 16-20 week range, both were giving mixed results. Plus, I'm a swing trader that likes to hold stocks for a few days up to a week or two if necessary, and this 12 week range seems to fit my style the best.

glgene
613 posts
msg #160697
Ignore glgene
12/4/2023 2:21:06 PM

Greg — Thank you for your prompt follow-up. I appreciate your info.

Gene in FL

snappyfrog
654 posts
msg #160698
Ignore snappyfrog
modified
12/4/2023 7:49:06 PM

I looked back through 3 months of picks. Quite impressive. If one only buys the next day if open is above close on the day this scan picks, it will keep one out of many bad hits.

I noticed it missed INTC near Nov 1st. Not sure why. Edit: nevermind, it is RANGE1 greater than 20

I added : draw spreadavg on plot price so I could see it on the chart.



greg00623
14 posts
msg #160699
Ignore greg00623
12/5/2023 8:59:49 AM

Thanks snappyfrog, I like the addition of buying the next day if open is higher than close. I threw the RANGE1 above 20 in there to try and weed out some of the more slow moving stocks. I'm in for a 5-10% gain when I buy so I need some volatility there.

SAFeTRADE
630 posts
msg #160700
Ignore SAFeTRADE
12/5/2023 9:54:01 AM

My opinion for what it's worth. IT'S A KEEPER! Very well done.

ST

StockFetcher Forums · Filter Exchange · 12 week momentum<< 1 2 >>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.