StockFetcher Forums · Filter Exchange · Attn: XARLOR (or anyone) - I never learned Boolean ...<< 1 2 >>Post Follow-up
karennma
8,057 posts
msg #151976
Ignore karennma
4/30/2020 10:50:13 AM

This old message still applies:
BOOLEAN for SF ... link? << >>Post Follow-up
karennma
7,607 posts
msg #127809 4/3/2016 11:52:16 AM

Question:
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}

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.
=================================

CURRENT Question:
Okay! So, that's the old post. Here's my question ...
How do I put those red cubes at the bottom of my charts which would specify the following:
A simplified example would be:
B (buy) = RSI(14) above 90
S (sell) = RSI(14) below 20

A lot of peeps add those red blocks to the bottom of their charts, but I don't know how to do it.
Anyone who knows how to do this -- I'd appreciate the assistance.





xarlor
587 posts
msg #151979
Ignore xarlor
4/30/2020 11:23:43 AM

karen, they're just using variables. oo and rr can be replaced with var1 and var2 or x1 and x2 or whateveryouwant1 and whateveryouwant2.

If you post the Boolean filter and what modifications you want I will try and explain.

As for your current question, to draw the blocks at the bottom here is how I do it:

Fetcher[

/* Always put your indicator in a set statement with count. */

/* RSI(14) above 90 turns into: */
set{BUY,count(RSI(14) above 90,1)}

/* RSI(14) below 20 turns into: */
set{SELL,count(RSI(14) below 20,1)}

/* If you want the marks regardless if they hit today or not: */
BUY > -1
SELL > -1

/* If you want just BUY signals, change above to BUY > 0 */

/* If you want to show tickers only with a BUY or SELL signal today, uncomment the lines below */

/*
set{trigger,BUY + SELL}
trigger > 0
*/

draw RSI(14)
draw RSI(14) line at 90
draw RSI(14) line at 20
]



karennma
8,057 posts
msg #151980
Ignore karennma
4/30/2020 12:32:14 PM

I don't see any blocks.


karennma
8,057 posts
msg #151981
Ignore karennma
modified
4/30/2020 12:38:16 PM

.

karennma
8,057 posts
msg #151982
Ignore karennma
modified
4/30/2020 12:40:46 PM

.

xarlor
587 posts
msg #151986
Ignore xarlor
4/30/2020 2:26:23 PM

They're there, just not on all tickers. The boxes only appear if they broke RSI(14) 20 or 90 within the last 3 months.

karennma
8,057 posts
msg #151987
Ignore karennma
4/30/2020 2:49:55 PM

Does this work for you ? .. or is something missing?
I don't understand where I've told it to put in those cubes.

Fetcher[
set{SELL,count(RSI(14) above 80,1)}
set{BUY,count(RSI(14) below 20,1)}


set{trigger,BUY + SELL}
trigger > 0
BUY > 20,1
SELL > 80,1

Apply symlist(AAPL, AMZN)
add column rsi(14)
]




karennma
8,057 posts
msg #151990
Ignore karennma
4/30/2020 3:15:52 PM



xarlor
587 posts
msg #151991
Ignore xarlor
modified
4/30/2020 3:18:49 PM

If you want to see when the conditions hit for those tickers:

Fetcher[

set{SELL,count(RSI(14) above 80,1)}
set{BUY,count(RSI(14) below 20,1)}


BUY > -1
SELL > -1

Apply symlist(AAPL, AMZN)
add column rsi(14)
draw rsi(14) line at 80
draw rsi(14) line at 20
]




If you want to show only when one of those conditions is true today:

Fetcher[
set{SELL,count(RSI(14) above 80,1)}
set{BUY,count(RSI(14) below 20,1)}


set{trigger,BUY + SELL}
trigger > 0

Apply symlist(AAPL, AMZN)
add column rsi(14)
draw rsi(14) line at 80
draw rsi(14) line at 20
]



Cheese
1,374 posts
msg #151992
Ignore Cheese
modified
4/30/2020 3:33:10 PM

.

StockFetcher Forums · Filter Exchange · Attn: XARLOR (or anyone) - I never learned Boolean ...<< 1 2 >>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.