StockFetcher Forums · General Discussion · Need help with same filter but multiple boundary conditions<< >>Post Follow-up
kirk123
23 posts
msg #107845
Ignore kirk123
8/29/2012 5:36:36 AM

Hi guys,

I can't seem to figure out this problem of mine.

I want to run the same filter where it uses multiple boundary conditions. stockfetcher does not have an "OR" condition.

Example is I want to run the one below and all results come out at the same time rather than run 3 programs separately

CCI(20) crossed above -100 or
CCI(20) crossed above 0 or
CCI(20) crossed above 100

thanks in advance

sfsteve
1 posts
msg #107847
Ignore sfsteve
8/29/2012 5:46:33 AM

The following should do the trick:

Fetcher[
set{xCondition1, count(cci(20) crossed above -100, 1)}
set{xCondition2, count(cci(20) crossed above 0, 1)}
set{xCondition3, count(cci(20) crossed above 100, 1)}
set{x12, xCondition1 + xCondition2}
set{xCross, x12 + xCondition3}
xCross > 0
and add column xCross
and draw cci(20)
]



You can find more details on this approach here:
http://help.stockfetcher.com/sfhelp/?id=100318


StockFetcher.com Support

StockFetcher Forums · General Discussion · Need help with same filter but multiple boundary conditions<< >>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.