StockFetcher Forums · General Discussion · Filter Exit Question<< >>Post Follow-up
einok
msg #92893
Ignore einok
5/19/2010 11:07:18 AM

How do I set a multiple exit condition for a filter?

For instance:

RSI closes above 70 then drops back below 70 indicating my exit?

Thanks

Cacher
121 posts
msg #92903
Ignore Cacher
5/19/2010 7:23:36 PM

Conditional statements not allowed....but oooohhh that would be soooo sweet.



Kevin_in_GA
4,599 posts
msg #92904
Ignore Kevin_in_GA
5/19/2010 7:47:02 PM

In the specific case you just mentioned, the simple statement "crossed 70 from above" would work. It would have to have gone above 70 beforehand for the statement to be true.

Try it and see.

four
5,087 posts
msg #92905
Ignore four
modified
5/19/2010 7:53:36 PM

Fetcher[
price between 10 and 50

set{ca, count(RSI(15) crossed above 70 within the last 0 days,1)}
set{cb, count(RSI(15) crossed below 70 within the last 0 days,1)}

set{oror,ca + cb}
oror > 0

/* value = 1, TRUE */
/* value = 0, FALSE */

add column ca {crossed ABOVE}
add column cb {crossed BELOW}


draw rsi(15) line at 30
draw rsi(15) line at 70

volume > 123123
]




Currently StockFetcher does not support conditional boolean logic directly. This is due to the potentially enormous computational impact it might have on StockFetcher's servers. There are, however, some work-arounds which may accomplish any boolean logic (or/if conditions). See the following forum posts for some solutions:

http://www.stockfetcher.com/stockdb/fetcher?p=forum⊂=view&fid=1001&tid=28017

http://www.stockfetcher.com/stockdb/fetcher?p=forum⊂=view&fid=1003&tid=28019


Reference: http://help.stockfetcher.com/sfhelp/?id=100318&isiframe=&isiframe=

einok
msg #92911
Ignore einok
5/19/2010 11:50:22 PM

Thanks for the feedback all. Kevin that worked exactly as I had hoped. Thanks again

StockFetcher Forums · General Discussion · Filter Exit Question<< >>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.