karennma 8,057 posts msg #127809 - Ignore karennma | 
4/3/2016 11:52:16 AM
  Question:
 Didn't SF at one time have a link for their Boolean filters?  
 i.e.,
 
 I don't know what "qq" means.  I don't know what "rr" means ...
 I don't know what  "oo" + "rr"  means.  (WHY are they adding "oo" and "rr"?) 
 SET{C1, oo + rr}
 SET{C2, C1 +qq}
 
 What would be the difference between "r" vs. "rr" or "q" vs. "qq"?
 SET{rr, COUNT(r between 0.99 and 1,1)}
 SET{qq, COUNT(q between 0.99 and 1,1)}
 
 
 set{o, ma(20)/close}  
 SET{oo, COUNT(o between 0.99 and 1,1)}
 set{r, ma(50)/close}  
 SET{rr, COUNT(r between 0.99 and 1,1)}
 set{q, ma(200)/close}  
 SET{qq, COUNT(q between 0.99 and 1,1)}
 
 add column c2{times} 
 sort column 5 descending
 
 add column oo{ma20}
 add column rr{ma50}
 SET{rr, COUNT(r between 0.99 and 1,1)}{ma200}
 SET{C1, oo + rr}
 SET{C2, C1 + qq}
 
 Question:
 Some one else had a Boolean filter that put "Buy", Sell", 'Wait" cubes at the bottom of their charts.  I believe it was color-coded.
 I have NO clue how to do it.  I copied their filter a few months ago, but couldn't modify it because I don't know Boolean.
 
 Anyone gotta link?
 Thanks in advance.
 
 
  | 
four 5,087 posts msg #127810 - Ignore four modified | 
4/3/2016 12:01:28 PM
  http://lib.colostate.edu/tutorials/boolean.html
 
 Short slide show on boolean logic...
 To move to the next slide, tap the NEXT button it is located in the top-right corner.
 
 From the slide show:
 
 Available options: dog, cat, bird, fish
 
 AND = BOTH (fur and barks = dog)
 OR = EITHER or BOTH (feathers or scales = bird or fish)
 NOT = ONE and NOT the other (lays eggs not in trees = fish)
 
 HTH
 
 ------------
 
 From TRO: He offers the boolean logic in StockFetcher format.
 
 http://forums.stockfetcher.com/forums2/General-Discussion/A-COMPLETE-LOGIC-SYSTEM-ANOTHER-GIFT-FROM-AVERY/28017
 
  | 
Kevin_in_GA 4,599 posts msg #127818 - Ignore Kevin_in_GA | 
4/3/2016 5:58:14 PM
  The basic idea is to create two (or more) user-defined variables - let's say your two conditions are that the close price must be above the 20 day moving average and the rsi(2) must be below 5.
 
 Now this is a really simple one since we could just write two filter statements and not get fancy, but here is a way to construct the Boolean versions:
 
 set{variable1, count(close above ma(20),1)}
 set{variable2, count(rsi(2) below 5,1)}
 set{Boolean_AND, variable1 * variable2} - this returns a value of 1 only if both conditions are true
 set{Boolean_OR, variable1 + variable2} - this returns a value of 1 if either condition is true
 
 As to the filter which color-coded options - it might have been this one from me a while back:
  	    
 
  |