StockFetcher Forums · General Discussion · Dyanmic lowest/highest for X days (variable).<< 1 2 >>Post Follow-up
nibor100
1,042 posts
msg #161451
Ignore nibor100
12/3/2024 12:33:05 PM

Here is my work in progress filter to give you what I think you want
.
The column "varlo3" should give you the lowest low in the past 12 days since the latest/highest High 21 day new high.. ( not in every case yet, but I have some other things to try)

Basically I'm taking consecutive 2 day Low Minimums, storing them in a variable, and then progressing thru 2 day minimums of each succeeding variable.

Let me know if this is kind of what you are after.

Thanks,
Ed S.

Fetcher[
price > 300 vol > 0
high < 21 day new high
add column high 21 day new high
add column days(high is equal to high 21 day new high, 12)
set{varlo, min(low, low 1 day ago)} add column varlo draw varlo /*on plot price*/
set{varlo1, min(varlo, varlo 1 day ago)} add column varlo1 draw varlo1 on plot varlo
set{varlo2, min(varlo1, varlo1 1 day ago)} add column varlo2 draw varlo2 on plot varlo
set{varlo3, min(varlo2, varlo2 1 day ago)} add column varlo3 draw varlo3 on plot varlo
]



StockFetcher Forums · General Discussion · Dyanmic lowest/highest for X days (variable).<< 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.