StockFetcher Forums · General Discussion · Help high lag<< >>Post Follow-up
deprez
60 posts
msg #28022
Ignore deprez
8/24/2003 9:06:00 PM

Hi,
I want to get a 26 day high not including today.
I want today to be greater than 26 day high.
I tried
Fetcher[
set{ myhi , 26 day high lag 1 day }
price is above myhi
]


Any suggestions welcome. Thanks.


murknd
62 posts
msg #28023
Ignore murknd
8/24/2003 9:56:28 PM

deprez,

You can tweak with ...

Fetcher[high reached a new high 26 day high]



... or ...

Fetcher[count(high above high 1 day ago,26) equal 26]



but I have a feeling you want the new 26 day high to be higher then the high the last 26 days ... and you don't necessarily want the high to be higher than the previous day for each of the last 26 days (like the count filter above) ... if so this is problematic I think. I too have tried this in trying to create a box breakout filter. Here's a 10 day filter that does that, but you can imagine it could get a little hairy if you want 26 days or even longer. Read my Box Theoy Filters post in Filter Exchange on the details. At the same time once you write this filter it will work, but it would not be very friendly if you wanted to frequently change the number of days. I'm going to keep working on this.

D

Fetcher[set{boxhigh,high 10 days ago}
and high 9 days ago below boxhigh
and high 8 days ago below boxhigh
and high 7 days ago below boxhigh
and high 6 days ago below boxhigh
and high 5 days ago below boxhigh
and high 4 days ago below boxhigh
and high 3 days ago below boxhigh
and high 2 days ago below boxhigh
and high 1 day ago below boxhigh
and high above boxhigh
and close above 5
and average volume(90) above 1000000
and volume above average volume(90)
]




deprez
60 posts
msg #28024
Ignore deprez
8/24/2003 10:38:48 PM

Thanks for your help. I read the box theory posts.
Its seems that box theory is but a glorified view of a new peak.
I thought with a simple lag on the high we would have the same
results that Darvas showed.

You seem to be searching for something similar in your filter.
Unfortunately, I think your filter starts at a fixed time period in the past and may not achieve/assign BoxHigh as a true PEAK. I think it is important to get that peak so that our breakout is significant i.e. continues a trending peak-trough progression.

I have not yet read Darvas' book, but have read numerous postings and web sites illustrating the idea. I think it is just common sense to buy a stock on break-out which continues upward peak-trough progrssion.




deprez
60 posts
msg #28025
Ignore deprez
8/24/2003 10:43:33 PM

I realize that a 26 day high does not necessarily give a PEAK either.
It is very possible that the peak was 35 days ago and myhigh is on the slippery slope. In these cases, I aver that further analysis may be necessary.


deprez
60 posts
msg #28026
Ignore deprez
8/24/2003 10:47:15 PM

My real question to Stock Fetcher is
why doesn't the LAG FUNCTION work in my example.


murknd
62 posts
msg #28028
Ignore murknd
8/24/2003 11:51:22 PM

... it does work if you get the syntax correct

try this ...

Fetcher[set{myhi,26 day high 1 day ago} and price is above myhi]



but I still don't think that's what we're looking for.

The filter I posted works (it does identify the peak 10 days ago) for 10 days and will work for 26 days ... and will work for 26 weeks - you just have to decide over what duration you want to make sure all the highs have been lower until today ... as I said the only problem is it can get rather hairy and long if you want long periods of time or if you want to change the frequency often.

D


murknd
62 posts
msg #28029
Ignore murknd
8/25/2003 12:20:49 AM

I think this is VERY close - check it out!!

Fetcher[26 day slope of high 26 day high 1 day ago equal 0 and high reached a new high 26 day high and close is between 1 and 10 and average volume(90) above 100000 and draw low 26 day low]



D


StockFetcher Forums · General Discussion · Help high lag<< >>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.