StockFetcher Forums · Filter Exchange · Need help scanning for prior 4 week range<< >>Post Follow-up
Rock Sexton
111 posts
msg #152422
Ignore Rock Sexton
modified
6/2/2020 9:46:22 PM

Looking for a filter that identifies when the current price pierces or closes below the low of the prior 4 week range.

Thanks ahead of time for anyone willing to share.

olathegolf
113 posts
msg #152423
Ignore olathegolf
6/2/2020 11:31:08 PM

Maybe something like this....
Fetcher[
/*From Rock Sexton: Looking for a filter that identifies when the current price pierces or closes below the low of the prior 4 week range. Thanks ahead of time for anyone willing to share.*/

Average volume(30) above 200000
Price above 1
set{a,low 4 week low 1 day ago}
set{x,count(low crossed below a,1)}
set{y,count(close below a,1)}
set{z,x+y}
z above 0
draw low 4 week low on plot price
add column a {4 week low}
add column x {cross below 4 week low}
add column y {close below 4 week low}
add column z {cross and close below 4 week low}
]



olathegolf
113 posts
msg #152424
Ignore olathegolf
6/3/2020 11:38:17 AM

Added High 4-week High Filter
Plotted 4 week highs and lows - 1 day ago for clarity on charts

Fetcher[
Average volume(30) above 200000
Price above 1

/*Low 4 Week Low Filter*/
set{4wklo_1dago,low 4 week low 1 day ago}
set{x,count(low crossed below 4wklo_1dago,1)}
set{y,count(close below 4wklo_1dago,1)}
set{z,x+y}
draw 4wklo_1dago on plot price
add column separator
add column 4wkl_1dago {4 week low}
add column x {cross below 4 week low}
add column y {close below 4 week low}
add column z {cross and close below 4 week low}
add column separator

/*High 4 Week High Filter*/
set{4wkhi_1dago,high 4 week high 1 day ago}
set{p,count(high crossed above 4wkhi_1dago,1)}
set{d,count(close above 4wkhi_1dago,1)}
set{q,p+d}
draw 4wkhi_1dago on plot price
add column 4wkhi_1dago {4 week high}
add column p {cross above 4 week high}
add column d {close above 4 week high}
add column q {cross and close above 4 week high}
set{tot,z+q}
tot above 0
sort column 8 descending
]



Rock Sexton
111 posts
msg #152433
Ignore Rock Sexton
6/3/2020 7:27:36 PM

Thanks a million Olathegolf!

StockFetcher Forums · Filter Exchange · Need help scanning for prior 4 week range<< >>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


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.