StockFetcher Forums · General Discussion · Stocks is less than 15% from 52-week high<< >>Post Follow-up
glgene
616 posts
msg #55900
Ignore glgene
10/22/2007 1:30:42 PM

I'm trying to write a script that finds stocks that are are within 15% of their 52-week highs. I tried this, and it didn't work:

close is less than 15% from its 52-week high
close is greater than 10
close is greater than close 1 day ago

Can someone offer a little scripting help? Thanks.

lockwhiz
206 posts
msg #55902
Ignore lockwhiz
10/22/2007 1:47:47 PM

...looks fine to me .... and it gave me plenty of results.. Why do you say it's not working ?

lockwhiz
206 posts
msg #55903
Ignore lockwhiz
10/22/2007 1:52:44 PM

hmmm maybe you are looking for stocks within that 15% of the high ???

then it would be:
Fetcher[
close is greater than 15% from its 52-week high
close is greater than 10
close is greater than close 1 day ago
]



TrendSurfer
109 posts
msg #55906
Ignore TrendSurfer
modified
10/22/2007 2:06:53 PM

...

glgene
616 posts
msg #55908
Ignore glgene
10/22/2007 2:50:45 PM

Trendsurfer, I believe you've got it. Saying 1 year instead of 52 weeks. With the msg. above yours, I was finding stocks that weren't within 15% of the 52-week high (e.g., LDK, NVR, CHUX).

Why this project? Because I read this comment from Bill O'Neil, of IBD: "In my 30 years of managing portfolios, I have never bought a stock unless its price was at or within 15% of its 52-week high. History has shown that the best stocks begin their big runs after trading at or above that level."

That said, when I tested your script, with the following additions (stock is greater than $10, and stock closed higher than day before), I came up with 1,764 matches. I'll need to put in a few more filters to whittle down the list (e.g, volume minimum, stock is above 34-day MA, etc.) Any ideas from anyone else?

Thanks!

StockFetcher Forums · General Discussion · Stocks is less than 15% from 52-week high<< >>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.