StockFetcher Forums · Filter Exchange · Lag<< >>Post Follow-up
snappyfrog
721 posts
msg #143975
Ignore snappyfrog
7/1/2018 12:21:46 AM

I am trying to find a 15 day slope of close < .01 lag 5 days
4 day slope of the close > .01

However; I am not having any luck with that syntax or trying to use days ago syntax.
Any ideas? Thanks in advance.

four
5,087 posts
msg #143976
Ignore four
7/1/2018 1:46:32 AM

LAG has always been a discussion point over the years.

Perhaps using DAYS will work...

Fetcher[
low > 20
volume > 123456
days(15 day slope of close < .01,10) equals 5
4 day slope of the close > .01
set{15d, 15 day slope of close}
draw 15d line .01
add column 15d
set{15dc, count(15 day slope of close < .01,1)}
draw 15dc
]



snappyfrog
721 posts
msg #143978
Ignore snappyfrog
7/1/2018 8:20:45 AM

Thanks four.
I was actually looking for a 15 day downward slope between days 20 and 5 with the last 4 days being in an uptrend.

I changed one line to show "-.01" but it still shows an uptrend.

Fetcher[low > 20
volume > 123456
days(15 day slope of close < -.01,10) equals 5
4 day slope of the close > .01
set{15d, 15 day slope of close}
draw 15d line .01
add column 15d
set{15dc, count(15 day slope of close < .01,1)}
draw 15dc
]



snappyfrog
721 posts
msg #143979
Ignore snappyfrog
7/1/2018 8:24:29 AM

I have read many, many posts on Lag. It seems to work on many statements, but I just can't get it to work on "slope of the close" for some reason. I know the answer is there I just haven't figured it out yet. Four thanks for your help. You are always quick to assist and you have a ton of great posts behind you.

four
5,087 posts
msg #143980
Ignore four
modified
7/1/2018 11:26:18 AM

thank you for the compliment

try experimenting/modifying this theme...



Fetcher[
low > 20
volume > 123456

set{c15, close 20 days ago / close 5 days ago}
draw c15
set{c4, close 9 days ago / close 5 days ago}
draw c4
c15 20 days ago > c15 5 days ago
c4 9 days ago > c4 5 days ago
]



boston
58 posts
msg #143981
Ignore boston
modified
7/1/2018 11:38:04 AM




four
5,087 posts
msg #143983
Ignore four
modified
7/1/2018 11:48:55 AM

try one of these ...





snappyfrog
721 posts
msg #144047
Ignore snappyfrog
7/7/2018 2:57:13 AM

Excellent four. Thanks.

four
5,087 posts
msg #144048
Ignore four
7/7/2018 10:42:31 AM

welcome

StockFetcher Forums · Filter Exchange · 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.