StockFetcher Forums · General Discussion · Parabolic SAR / "has not been increasing"<< >>Post Follow-up
jimdandy
11 posts
msg #160479
Ignore jimdandy
8/4/2023 10:04:27 AM

Hello all,

I need help in terms of the following condition I want to implement:

Parabolic SAR(0.02,0.2) below price for 1 day
set{countPSARdec, days(Parabolic SAR(0.02,0.2) 2 days ago above price,5)}

What I try to achieve is: all stocks where Parabolic SAR is below the close yesterday and the 5 days before (so 2 to 6 days before today) Parabolic SAR was above the close.
The second phrase (set....) seems not be right. At least the result showing different things.


My second question is: if I am not wrong the phrase "close has not been increasing for 5 days" does not work. Can you help me with an alternative?

Thank you very much
Heiko

xarlor
548 posts
msg #160480
Ignore xarlor
8/4/2023 10:51:45 AM

Fetcher[
Parabolic SAR(0.02,0.2) 1 day ago < close 1 day ago for last 6 days
Parabolic SAR(0.02,0.2) > close
]



On your second question, we need more detail.
Do you mean close has been in a decline for 5 days?
Choppy during the last 5 days (sometimes close is above yesterday, other times below)?
It can be increasing 4 out of 5 days, but 1 of those days has to be decreasing?

jimdandy
11 posts
msg #160481
Ignore jimdandy
8/4/2023 11:19:30 AM

Thanks Xarlor!

Actually it only should not increase above the close 5 days ago. But it does not matter if it ends up at the same closing than 5 days ago (went down and up again) or decreased for 5 days or any other possibility.

xarlor
548 posts
msg #160483
Ignore xarlor
8/4/2023 12:06:33 PM

The definitive answer is:

Fetcher[
set{c5d,close 5 days ago}
close < c5d
close 1 day ago < c5d
close 2 days ago < c5d
close 3 days ago < c5d
close 4 days ago < c5d

draw price line at c5d
]



Theoretically, this should work, but StockFetcher wonkiness is recalculating c5d as 5 days prior to whichever day it's checking. One would assume c5d stays constant as 5 days prior to today. See XLU, GNS, or GOLD as examples. Same problem if you use count.

Fetcher[
set{c5d,close 5 days ago}
close < c5d for last 5 days

draw price line at c5d
]



jimdandy
11 posts
msg #160488
Ignore jimdandy
8/4/2023 4:42:54 PM

Thanks xarlor!

StockFetcher Forums · General Discussion · Parabolic SAR / "has not been increasing"<< >>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.