2nickelstripper 7 posts msg #146952 - Ignore 2nickelstripper | 
3/16/2019 2:19:07 PM
  Hey all,
 
 I'm trying to figure out how to exclude stocks that have gone below the RSI (14) within the last x number of days.  I just can't seem to figure it out.  Does anybody know how I could do this?
 
 For context, its for a pullback setup.  The rest of the filter includes stocks that follow certain patterns, but I want to start excluding stuff from it to narrow down the results.
 
  | 
four 5,087 posts msg #146954 - Ignore four modified | 
3/16/2019 7:04:31 PM
  perhaps this or something derived from this 
  
 
  | 
2nickelstripper 7 posts msg #146974 - Ignore 2nickelstripper | 
3/17/2019 9:28:34 PM
  Thanks for the suggestion, but not quite what I'm looking for I don't think.  I'm trying to exclude stocks that have dipped below.  A dip below means there is too much momentum against the direction I'm looking to go.
 
  | 
four 5,087 posts msg #146975 - Ignore four modified | 
3/17/2019 10:30:50 PM
  /* 
 RSI(14) > 30 when x equals 1 "include stocks below the RSI(14) value 30" 
 RSI(14) < 30 when x equals 0 "exclude stocks below the RSI(14) value 30" 
 0 days ago = today "change days ago value 0 as needed"
 */ 
 
 
 set{x, count(rsi(14) 0 days ago above 30,1)} 
   x equals 0
   draw rsi(14)
 
  |