knotam 7 posts msg #78195 - Ignore knotam |
8/28/2009 7:14:15 PM
I am trying to write a stat filter that tells me the following:
close 5 days ago crossed above MA(5)
close today is above close 5 days ago
I want to count how many times the above happened in the last 100 days (looking for short term swing trade candidates, but once I know how to code the above I can do a lot more with it as well). I read the AND / OR thread from TRO, but can't quite get the logic correct. What I would like to do is:
set{v1, count(close is above close 5 days ago and close 5 days ago crossed above MA(5),100}
unfortunately, SF won't do the AND in there. Can anyone help?
|
Eman93 4,750 posts msg #78284 - Ignore Eman93 |
8/30/2009 2:14:16 PM
You cant use and/or in a filter.......
close 5 days ago crossed above MA(5)
close today is above close 5 days ago
I want to count how many times the above happened in the last 100 days (looking for short term swing trade candidates, but once I know how to code the above I can do a lot more with it as well). I read the AND / OR thread from TRO, but can't quite get the logic correct. What I would like to do is:
set{v1, count(close is above close 5 days ago and close 5 days ago crossed above MA(5),100}
++++++++++++++++++++++++++++++++++++++++++
|