StockFetcher Forums · General Discussion · either/or syntax<< >>Post Follow-up
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 #34283
Ignore TheRumpledOne
12/8/2004 11:57:54 PM

I posted a BOOLEAN LOGIC technique... search for it.

MAY ALL YOUR FILLS BE COMPLETE.


jpistell
123 posts
msg #34322
Ignore jpistell
12/11/2004 7:58:04 AM

mm,
Visit this site:
http://yepher.com/~yepher/stockfetcher/command.html

Its a treasure.

g'luck,
Joe



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.



StockFetcher Forums · General Discussion · either/or syntax<< >>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 2016 - 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