StockFetcher Forums · General Discussion · Different results - why?<< >>Post Follow-up
jimdandy
13 posts
msg #161361
Ignore jimdandy
9/13/2024 3:58:39 PM

Hello,

I am wondering why these two lines are not delivering the same result:

volume > 2 * volume one day ago

and

set {dob, volume one day ago * 2}
volume > dob

The first one is delivering far more results.

Somebody can help me on this?

Thank you!

snappyfrog
721 posts
msg #161362
Ignore snappyfrog
9/13/2024 7:21:01 PM

Fetcher[
volume > 2 * volume one day ago
]



Fetcher[
set {dob, volume one day ago * 2}
volume > dob
]



And this is different also:

Fetcher[
volume > volume 1 day ago * 2
]




xarlor
581 posts
msg #161363
Ignore xarlor
9/13/2024 9:14:16 PM

SF cannot have more than 1 calculation per line.

This has 2 calculations in the line and so breaks SF
Calculation 1: volume >
Calculation 2: 2 * volume one day ago:

Fetcher[
volume > 2 * volume one day ago
]




This has only one calculation per line and is the correct way to write what you intended:

Fetcher[
set {dob, volume one day ago * 2}
volume > dob
]



nibor100
1,031 posts
msg #161364
Ignore nibor100
9/14/2024 9:08:54 AM

for some added oddness:
Ed S.:

Fetcher[
add column 2
]



jimdandy
13 posts
msg #161365
Ignore jimdandy
9/14/2024 2:02:31 PM

Thank you for the explanation!

xarlor
581 posts
msg #161366
Ignore xarlor
9/14/2024 7:56:54 PM

To elaborate, after SF reaches the first calculation, it ignores everything else in the line. So essentially, this line:

volume > 2 * volume one day ago

is being interpreted by SF as:

volume > 2

This is why it returns the entire universe of tickers, more or less.

StockFetcher Forums · General Discussion · Different results - why?<< >>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.