wkloss 231 posts msg #93352 - Ignore wkloss |
6/1/2010 12:15:26 PM
I'm trying to write a filter where the stock crosses and closes above %R -20; falls below -20 and then closes again above %R -20. Here's what I have so far and I don't think it is correct:
Williams %R(30) closed above -20 within the last 10 days and
Williams %R(30) closed below -20 within the last 9 days and Williams %R(30) closed above -20
Comments and help would be appreciated
|
marine2 963 posts msg #93361 - Ignore marine2 |
6/1/2010 2:57:45 PM
Not sure how to fix this but I can see why your program is confused. Your last two lines of code is telling it to do two seperate things. The second part of your code says to, "and Williams %R(30) closed below -20 within the last 9 days", then the last coding you are saying, "and Williams %R(30) closed above -20". The last day of your filtering code is confused. Your are asking it to do two seperate things. Look at the two last codings. One is covering the last 9 days and the last code is asking it to respond to the last closed day. The last day is causing confusion. If someone can seperate the last closed days filtering action from the previous days then I think you will be good to go. Or maybe I am all wrong?
|
four 5,087 posts msg #93366 - Ignore four |
6/1/2010 4:41:03 PM
|
wkloss 231 posts msg #93463 - Ignore wkloss |
6/3/2010 3:54:15 PM
marine2 & four,
Thanks for your input. It does what I wanted now.
Bill
|