StockFetcher Forums · General Discussion · Dyanmic lowest/highest for X days (variable).<< 1 2 >>Post Follow-up
nibor100
1,044 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
]



rafting101
11 posts
msg #161491
Ignore rafting101
12/18/2024 11:06:40 AM

@nibor100

sorry that I didn't see your message earlier... I didn't realize that there is a new message on "page 2"....

Anyway, thank you for trying, but I don't understand what you are trying to achieve here.

The lines with "varlo", are just lowest low of some value.
for example, if you add to your example:

set{ll5, low 5 days low} add column ll5 draw ll5 /*on plot price*/

you will be able to see that it always has the same value as varlo3

so Its not the algorithm that I'm looking for.

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.