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