StockFetcher Forums · General Discussion · Does order matter in the filters?<< >>Post Follow-up
tylercabral
23 posts
msg #118729
Ignore tylercabral
modified
3/24/2014 2:08:12 PM

I assumed it did not (assuming you are not using variables, where the order could matter obviously), but when I run two of the same filters rearranged in different orders I get different results? What is going on here? The only difference between the two filters is the location of one line ("and slope MA(150) > 0").

Filter 1:
Show stocks where MACD histogram(12,26) has been increasing over the last 4 days
and momentum(12) has been increasing over the last 2 days

and Average Volume(90) is above 1000000
and Average Volume(22) is above 1000000
and Average Volume(5) is above 1000000

and close is between 19 and 300
and slope MA(150) > 0
set{nysestocks, count(market is NYSE,1)}
set{nasdaqstocks, count(market is nasdaq,1)}
set{combined, nysestocks + nasdaqstocks}
combined above 0


Filter 2:
Show stocks where MACD histogram(12,26) has been increasing over the last 4 days
and momentum(12) has been increasing over the last 2 days
and slope MA(150) > 0

and Average Volume(90) is above 1000000
and Average Volume(22) is above 1000000
and Average Volume(5) is above 1000000

and close is between 19 and 300

set{nysestocks, count(market is NYSE,1)}
set{nasdaqstocks, count(market is nasdaq,1)}
set{combined, nysestocks + nasdaqstocks}
combined above 0

Why are these returning different results?

stockfetcher
980 posts
msg #118730
3/24/2014 2:15:01 PM

Order does not matter when it comes to the filtering logic; however, order can effect how the indicators are oriented in the resulting charts.

In your example, the issue you are experiencing is related to the incomplete syntax for the slope line. You have:

and slope MA(150) > 0

But the slope feature requires a period prior to the slope keyword. For example, a corrected version is:

and 50 day slope of MA(150) > 0

StockFetcher Support


tylercabral
23 posts
msg #118731
Ignore tylercabral
3/24/2014 2:19:35 PM

Thank you very much for the clarification.

StockFetcher Forums · General Discussion · Does order matter in the filters?<< >>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.