StockFetcher Forums · Filter Exchange · Curious Anomaly in SF "minus" vs "-"<< >>Post Follow-up
nibor100
1,010 posts
msg #151726
Ignore nibor100
4/5/2020 9:20:23 AM

Fetcher[
set{hi,days(price reached 52 week high, 100)}
set{lo,days(price reached 52 week low, 100)}
hi above 0
lo above 0
set{diff,abs(hi - lo)}
add column diff
add column hi add column lo


add column abs(hi - lo)
add column abs(lo minus hi)
add column abs(hi minus lo)
]



Seems like it parses past the variable "hi" if the abs command uses "-" instead of "minus"
Ed S.


JoeyVinyl
125 posts
msg #151738
Ignore JoeyVinyl
4/5/2020 3:59:22 PM

That is weird. I played around with it, changing the variable names just to see if that made any difference but it didn't (just adding 52 in front). I also added just a 'hi - lo' column to see the actual difference. I found just what you found with the abs function. When I used the "-" symbol it always gave the low number, but when I spelled out "minus" it gave the actual difference.

Maybe someone from the SF team can tell us why.

nibor100
1,010 posts
msg #151740
Ignore nibor100
4/5/2020 4:21:46 PM

Thanks for looking into it.

I wasn't going to send a question to SF because usually when I send a "why" question they don't answer it directly; but simply send me back the part of the filter that actually works...like I didn't already have that part figured out.

Generally, it seems that words in SF filters have more capability in certain situations than arithmetic symbols.

Ed S.

StockFetcher Forums · Filter Exchange · Curious Anomaly in SF "minus" vs "-"<< >>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.