TheRumpledOne 6,529 posts msg #35114 - Ignore TheRumpledOne | 
2/12/2005 11:36:02 AM
  Is there an "OR" command like... 
 Show stocks where RSI(15) crossed above 30.00 within the last 1 day 
 "or" Show stocks where RSI(15) crossed above 20.00 within the last 1 day 
 
 I see "and" which restricts stocks I would like to use or to get more qualifing stocks. "OR" anyone? 
 Craig
 
 How to write "OR" logic...
 
 /* OR Implementation */ 
 /* by definition OR is TRUE IF A is TRUE, B is TRUE, or A AND B is TRUE*/ 
 /* THEREFORE by counting and adding, if the sum is greater than 0 the OR condition is TRUE. */ 
 /* Copyright 2003 by Avery T. Horton, Jr. */ /* Permission to use OR Implementation within StockFetcher Granted */ 
 /* Permission to publish or post on any other forum DENIED */ 
 /* ----------------------------------------------------------------*/ set{A, count(close above 100, 1)} 
 set{B, count(volume above 50,000,000, 1)} 
 set{OR1, A + B} 
 show stocks where OR1 above 0 
 
 Here's your filter:
 
  	    
 
 MAY ALL YOUR FILLS BE COMPLETE.
 
 
 
 
 
 
 
  |