| acfncp3 59 posts
 msg #71127
 - Ignore acfncp3
 modified
 | 2/2/2009 7:42:28 AM 
 I have been wriing against a  position to adjust if it goes in the  wrong direction.  This is best done when the original entry is near a strike price which comes in increments of 5.  Is there a way to add a filter to the great ones here  that will select stocks that are in a particular range.  The simple answer I've been using is for example: close is between 30 and 31 etc..  But it would be great to filter for a group such as: close between 30 and 31 and/or 35 and 36 and/or 40 and 41 etc..  I looked for an OR statement in SF but could not find it.   I think this would be be very helpful to option traders who adjust positions when things go bad, as they often do.
 
 
 Thanks
 
 
 
 
 
 | 
| chetron 2,817 posts
 msg #71128
 - Ignore chetron
 | 2/2/2009 9:16:15 AM 
 TRY THIS OUT
 
 
 | 
| acfncp3 59 posts
 msg #71136
 - Ignore acfncp3
 | 2/2/2009 4:54:33 PM 
 Wow it's amazing you wrote this so many yrs ago.  I got it to work for two sets but can't seem to work it out for three.  I guess I don't understand exactly how to use sets here.    This is what I tried to do.  If you can show me how to string these sets I'd really appreciate it.
 
 /* Permission to publish or post on any other forum DENIED */
 /* ----------------------------------------------------------------*/
 set{A, count(close between 30 and 31, 1)}
 set{B, count(close between 40 and 41, 1)}
 set{C, count(close between 50 and 51, 1)}
 set{OR1, A + B+C} show stocks where OR1 above 0
 
 
 
 It works for a set{OR1, A+B) but not for A+B+C
 
 Thanks
 
 
 
 | 
| welliott111 98 posts
 msg #71137
 - Ignore welliott111
 | 2/2/2009 5:07:53 PM 
 
 
 
 
 
 |