StockFetcher Forums · Filter Exchange · Learning BOOLEAN for SF ... link?<< >>Post Follow-up
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:
Fetcher[
set{pp_10, CMA(pp,10) 1 day ago}
set{r_10, CMA(r1,10) 1 day ago}
set{s_10, CMA(s1,10) 1 day ago}

set{BUY, count(close closes above pp_10,1)}
set{SELL, count(close closes below r_10,1)}
set{WAIT, BUY * SELL}


draw WAIT
draw SELL on plot WAIT
draw BUY on plot WAIT

draw pp_10 on plot price
draw r_10 on plot price
draw s_10 on plot price

symlist(spy,qqqq,dia,gld,iwm,slv)

add column BUY
add column SELL
add column pp_10
add column r_10
add column s_10
]



StockFetcher Forums · Filter Exchange · Learning BOOLEAN for SF ... link?<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.