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
|