StockFetcher Forums · General Discussion · all time high<< >>Post Follow-up
cardi
11 posts
msg #155999
Ignore cardi
3/2/2021 9:13:50 AM

Hi, help needed, trying to find phrasing to find stocks that are within x % from all time high. x=a number of my choice. thanks in advance

miketranz
969 posts
msg #156003
Ignore miketranz
modified
3/2/2021 5:16:28 PM

ALL TIME HIGH LIST: https://www.tradingview.com/markets/stocks-usa/highs-and-lows-ath/ Also try this
Fetcher[price reached a new 700 DAY high]

I'm sure someone will help you with the percentages.Best,Mike...

cardi
11 posts
msg #156021
Ignore cardi
3/3/2021 5:25:24 PM

is it possible in SF to show stocks that are within 10% of new 52 week high.

xarlor
587 posts
msg #156022
Ignore xarlor
3/3/2021 7:03:30 PM

Fetcher[
/*The first 3 lines is all you need */
set{52wh,high 52 week high}
set{10p,52wh * 0.90}
close > 10p

/*The rest of this is just bells and whistles */
set{pdiff1,close / 52wh}
set{pdiff2,1 - pdiff1}
set{pdiff,100 * pdiff2}

draw price line at 52wh
draw price line at 10p

add column 52wh
add column 10p
add column pdiff {Percent from 52-week high}
]



nibor100
1,046 posts
msg #156026
Ignore nibor100
3/4/2021 2:39:52 AM

@cardi,

The following snippet of filter code from the Xarlor library of filters, shows within 5% of 52 week high both above and below which you can easily modify for 10% if that's what you were looking for.

Ed S.

set{5b,high 52 week high * .95}
set{5a,high 52 week high * 1.05}
close > 5b
close < 5a

cardi
11 posts
msg #156032
Ignore cardi
3/4/2021 1:30:57 PM

Thank you so much for your input, its much appreciated...Dave


StockFetcher Forums · General Discussion · all time 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.