StockFetcher Forums · Filter Exchange · Complete Logic System Within SF<< >>Post Follow-up
TheRumpledOne
6,411 posts
msg #28018
Ignore TheRumpledOne
8/24/2003 1:29:11 PM

I have implemented OR, NOT and AND using SF set and count functions. Now we have a complete logic system within SF. THERE IS NOTHING YOU CAN'T DO NOW!
This should revolutionize SF Filter writing.

Fetcher[/* 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 withing 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]



* NOT Implementation */ /* by definition NOT A is TRUE IF A is FALSE*/ /* THEREFORE by counting and adding, if the sum is equal to 0 the NOT condition is TRUE. */ /* Copyright 2003 by Avery T. Horton, Jr. */ /* Permission to use NOT Implementation withing StockFetcher Granted */ /* Permission to publish or post on any other forum DENIED */ /* ----------------------------------------------------------------*/ set{NOT, count(close below 100, 1)} show stocks where NOT equal 0

/* AND Implementation */ /* by definition A AND B is TRUE IF A is TRUE and B is TRUE*/ /* THEREFORE by counting and adding, if the sum is equal to 2 the AND condition is TRUE. */ /* Copyright 2003 by Avery T. Horton, Jr. */ /* Permission to use NOT Implementation withing StockFetcher Granted */ /* Permission to publish or post on any other forum DENIED *//* ----------------------------------------------------------------*/ set{A, count(close above 100, 1)} set{B, count(volume above 1000000, 1)} set{X, A + B} show stocks where X equal 2

Ok, first, before you BLAST me with "SF already has AND", just sit back, relax and OPEN you mind...

Using these functions, you have a complete logic system. You can implement a complete SET THEORY.

OR is greater than 0
AND is equal 2
NOT is equal 0

So by putting each condition you are filtering in a COUNT and then using SET to sum the condition pair, you can test for the OR, AND or NOT condition.

If you don't understand LOGIC or SET THEORY, I suggest you do a www.google.com search.

Those who understand will see the simple elegance of this.

GOOD LUCK WITH YOUR FILTERS!





deprez
60 posts
msg #28183
Ignore deprez
8/31/2003 5:27:01 PM

Looks like there is a limit of column count
and with Bullish Side-by-side lines.
Isn't there an easier way to find bullish candlesticks.

Fetcher[
set{c2, pattern is bullish upside tasuki gap}
set{c3, pattern is bullish separating lines}
set{c4, pattern is bullish three line strike}
set{c5, pattern is bullish upside gap three methods}
set{c6, pattern is bullish harami cross}
set{c7, pattern is bullish three outside down}
set{c8, pattern is bullish three inside up}
set{c9, pattern is bullish homing pigeon}
set{c10, pattern is bullish bullish harami}
set{c11, pattern is bullish morning doji star}
set{c12, pattern is bullish tri-star}
set{c13, pattern is bullish meeting lines}
set{c14, pattern is bullish unique three rivers}
set{c15, pattern is bullish abandoned baby}
set{c16, pattern is bullish matching low}
set{c17, pattern is bullish engulfing}
set{c18, pattern is bullish concealing baby swallow}
set{c19, pattern is bullish three white soldiers}
set{c20, pattern is bullish kicking}
set{OR1, c2 }
set{OR2, OR1 + c3 }
set{OR3, OR2 + c4 }
set{OR4, OR3 + c5 }
set{OR5, OR4 + c6 }
set{OR6, OR5 + c7 }
set{OR7, OR6 + c8 }
set{OR8, OR6 + c9 }
set{OR9, OR6 + c10 }
set{OR10, OR6 + c11 }
set{OR11, OR6 + c12}
set{OR12, OR6 + c13 }
set{OR13, OR6 + c14 }
set{OR14, OR6 + c15 }
set{OR15, OR6 + c16 }
set{OR16, OR6 + c17 }
set{OR17, OR6 + c18 }
set{OR18, OR6 + c19 }
set{OR19, OR6 + c20 }

set{ST2, c2 + c2 }
set{ST3, c3 + c3 }
set{ST4, c4 + c4 }
set{ST5, c5 + c5 }
set{ST6, c6 + c6 }
set{ST7, c7 + c7 }
set{ST8, c8 + c8 }
set{ST9, c9 + c9 }
set{ST10, c10 + c10 }
set{ST11, c11 + c11 }
set{ST12, c12 + c12 }
set{ST13, c13 + c13 }
set{ST14, c14 + c14 }
set{ST15, c15 + c15 }
set{ST16, c16 + c16 }
set{ST17, c17 + c17 }
set{ST18, c18 + c18 }
set{ST19, c19 + c19 }
set{ST20, c20 + c20 }
set{Pattern,ST2+ST3}
add column ST2 and
add column ST3 and
add column ST4 and
add column ST5 and
add column ST6 and
add column ST7 and
add column ST8 and
add column ST9 and

OR19 above 0
]



I would like to have a column which gives the candlestick pattern name.
I used the set{ST, A+A} to attempt an IF STATEMENT.
It sure would be nice to have an IF STATEMENT.
Also, it would be nice to write STRINGS to be displayed in columns.

Geodepe


deprez
60 posts
msg #28184
Ignore deprez
8/31/2003 5:30:07 PM

I also tried

set{G, A+B+C+D}
show stocks where G is above 0

with no luck. :(


TheRumpledOne
6,411 posts
msg #28194
Ignore TheRumpledOne
8/31/2003 11:00:40 PM

Deprez you have to use COUNT in order for the logic to work.




TheRumpledOne
6,411 posts
msg #48356
Ignore TheRumpledOne
12/2/2006 9:04:49 PM

POP TO THE TOP


graftonian
1,089 posts
msg #153180
Ignore graftonian
7/17/2020 11:23:15 AM

An "oldie but goody" from 2003

TheRumpledOne
6,411 posts
msg #156083
Ignore TheRumpledOne
3/10/2021 1:45:07 AM

***POP***

StockFetcher Forums · Filter Exchange · Complete Logic System Within SF<< >>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.