StockFetcher Forums · Filter Exchange · 52 week high help<< >>Post Follow-up
hmsb4494
81 posts
msg #158913
Ignore hmsb4494
4/1/2022 2:17:02 AM

How to code high has not made a 52 week high in the last 5 days, but made a new 52 week high today.



xarlor
499 posts
msg #158914
Ignore xarlor
4/1/2022 7:54:26 AM

Fetcher[
/* Your request */
count(high 1 day ago < high 52 week high 1 day ago,5) equals 5
high equals high 52 week high

/* Extra visuals, bells, and whistles */
add column separator
add column days(high 1 day ago equals high 52 week high 1 day ago,252) {Days since last 52-week high}
add column high 52 week high 1 day ago
add column high 52 week high

draw price line at high 52 week high 1 day ago
do not draw high 52 week high
sort column 6 descending
]



hmsb4494
81 posts
msg #158915
Ignore hmsb4494
4/1/2022 10:12:34 AM

Xarlor. Perfect. Thanks for your help. Seems like good things happen around yhe 52 week high.

redversa721
154 posts
msg #158933
Ignore redversa721
4/5/2022 12:26:21 PM

Beautiful code Xarlor. How elegant

StockFetcher Forums · Filter Exchange · 52 week high help<< >>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.