danielmiz 3 posts msg #68948 - Ignore danielmiz |
11/3/2008 12:18:03 AM
Looking for help on a stochastics filter to identify pullbacks - the general filter is:
Stochastic(7,10,4) %D has been decreasing for 4 days and Stochastic(7,10,4) %K has been increasing for 4 days
But would like to screen for pullbacks from 4 to 6 days. Ideally the filter looks like this:
Show stocks where Stochastic(7,10,4) %D has been decreasing for 4 days and Stochastic(7,10,4) %K has been increasing for 4 days
or show stocks where Stochastic(7,10,4) %D has been decreasing for 5 days and Stochastic(7,10,4) %K has been increasing for 5 days
or show stocks where Stochastic(7,10,4) %D has been decreasing for 6 days and Stochastic(7,10,4) %K has been increasing for 6 days
But since there's no "OR" statement in SF, how would you code this? Tried using TRO's count method to mimic the OR but couldn't figure it out.
|