StockFetcher Forums · General Discussion · I am trying to use the OR but it does not work - please Help<< >>Post Follow-up
edlsantos
7 posts
msg #85484
Ignore edlsantos
1/4/2010 12:09:55 AM



I am trying to use the OR but it does not work - please Help:

set{A, count(Show stocks where high reached a new 11 week high apply to watchlist(WLSPY), 1)}

set{B, count(Show stocks where high reached a new 11 week high apply to watchlist(WLSH), 1)}

set{OR1, A + B} show stocks where OR1 equal 1

I want to buy when the SPY is in an 11 week high or when the SH (reverse SPY etf is in an 11 week high,

buy it does not work.

watchlist(WLSPY) contains SPY
and
watchlist(WLSH) contains SH

chetron
2,817 posts
msg #85489
Ignore chetron
modified
1/4/2010 6:46:32 AM

do not use common words, such as "a", as a variable. sf gets confused easily....

oops, betterer....


Fetcher[
set{var1,ind(^spx,high)}
set{var2,ind(^vxv,high)}

set{vA, count(var1 reached a new 11 week high, 1)}

set{vB, count(var2 reached a new 11 week high ,1)}

set{OR1, vA + vB}

draw vb on plot va

show stocks where OR1 equal 1
apply to watchlist(WLSPY)
apply to watchlist(WLSH)

]



edlsantos
7 posts
msg #85503
Ignore edlsantos
1/4/2010 10:56:28 AM

Thank you Chetron

StockFetcher Forums · General Discussion · I am trying to use the OR but it does not work - please Help<< >>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.