StockFetcher Forums · Filter Exchange · Is there an OR command I see and<< >>Post Follow-up
craigk
24 posts
msg #35111
Ignore craigk
2/11/2005 3:59:42 PM

Hi SF people,

Is there an "OR" command like...
Show stocks where RSI(15) crossed above 30.00 within the last 1 day
"or" Show stocks where RSI(15) crossed above 20.00 within the last 1 day

I see "and" which restricts stocks I would like to use or to get more qualifing stocks. "OR" anyone?
Craig


jclaffee
81 posts
msg #35112
Ignore jclaffee
2/11/2005 11:29:39 PM

craigk,

check out the posting "either/or syntax" by The Rumpled One in the General Discussion forum on 12/8/2004.

Jim


TheRumpledOne
6,407 posts
msg #35114
Ignore TheRumpledOne
2/12/2005 11:36:02 AM

Is there an "OR" command like...
Show stocks where RSI(15) crossed above 30.00 within the last 1 day
"or" Show stocks where RSI(15) crossed above 20.00 within the last 1 day

I see "and" which restricts stocks I would like to use or to get more qualifing stocks. "OR" anyone?
Craig

How to write "OR" logic...

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

Here's your filter:

Fetcher[
set{x30, count(RSI(15) crossed above 30.00,1)}
set{x20, count(RSI(15) crossed above 20.00,1)}
set{x, x30 + x20}
show stocks where x > 1
and add column rsi(15) {RSI15}
and add column rsi(15) 1 day ago {rsi-1}
and add column x30
and add column x20
]



MAY ALL YOUR FILLS BE COMPLETE.







StockFetcher Forums · Filter Exchange · Is there an OR command I see and<< >>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.