mmentors 1 posts msg #34280  Ignore mmentors 
12/8/2004 10:58:37 PM
I'm trying to create a filter that will apply several indicators to find an overbought condition in a stock, but only require an overbought reading on one of the indicators to return a result. Thought I might be able to do this with an "either/or" syntax, but can't seem to get it to work. It understands this as only "and" and applies all the filters.
Here's basically what I'm trying to do:
either the Double Stochastic(10,3) is above 90
or the CCI(14) is above 200
and either the weekly Double Stochastic(10,3) is above 90
or the weekly CCI(14) is above 200
When I run this filter, and other variations I've tried, it only gives me results where BOTH the Double Stochastic AND the CCI are overbought.
Can someone help me with this?
Thank you.

TheRumpledOne 6,358 posts msg #34540  Ignore TheRumpledOne 
12/26/2004 11:37:26 PM
I AM REPOSTING THIS:
/* 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 within 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
/* 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 within 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
/* 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 within 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
MAY ALL YOUR FILLS BE COMPLETE.
