StockFetcher Forums · Filter Exchange · Combine Two Filters<< >>Post Follow-up
novacane32000
331 posts
msg #97017
Ignore novacane32000
10/15/2010 7:25:00 PM

Is there a way to combine 2 filters ?

The below 2 filters were found on these message boards and appear to work well .

The first filter gives buy and sell signals for SPY.
The second filter works very well when SPY has a buy signal.

Can the two be combined so that the second filter (Stock Filter) is able to look at the SPY indicator and only select stocks on days when SPY is a buy?

SPY INDICATOR

SET{SPY, IND(SPY,CLOSE)}
SET{VXX, IND(VXX,CLOSE)}
SET{RATIO, VXX / SPY}
SET{RATIOMA13, CMA(RATIO,13)}
SET{VXX_LONG, COUNT(RATIO ABOVE RATIOMA13,1)}
SET{SP500_LONG, COUNT(RATIO BELOW RATIOMA13,1)}
SET{TRIGGER,0}

DRAW RATIO ON PLOT RATIOMA13

DRAW VXX_LONG ON PLOT TRIGGER
DRAW SP500_LONG ON PLOT TRIGGER

SYMLIST(SPY,VXX)

ADD COLUMN SP500_LONG
ADD COLUMN VXX_LONG

--------------------------------------------------------------------
STOCK FILTER FOR BULL MARKET

Show stocks where the MACD Histogram(12,26,9) is increasing the last 2 days below 0
and close is between 2 and 20
and Slow Stochastics Fast %K(10) crossed above 20
show stocks where the PVO(10,100) has been increasing last 7 days
and volume is above 340000


Kevin_in_GA
4,599 posts
msg #97029
Ignore Kevin_in_GA
10/16/2010 2:54:08 PM

Easy:

Fetcher[

SET{SPY, IND(SPY,CLOSE)}
SET{VXX, IND(VXX,CLOSE)}
SET{RATIO, VXX / SPY}
SET{RATIOMA13, CMA(RATIO,13)}
SET{VXX_LONG, COUNT(RATIO ABOVE RATIOMA13,1)}
SET{SP500_LONG, COUNT(RATIO BELOW RATIOMA13,1)}
SET{TRIGGER,0}

DRAW RATIO ON PLOT RATIOMA13

DRAW VXX_LONG ON PLOT TRIGGER
DRAW SP500_LONG ON PLOT TRIGGER

ratio below ratioma13

Show stocks where the MACD Histogram(12,26,9) is increasing the last 2 days below 0
and close is between 2 and 20
and Slow Stochastics Fast %K(10) crossed above 20
show stocks where the PVO(10,100) has been increasing last 7 days
and volume is above 340000
]



Filter gives no stocks for today, but has no errors in it. This should work fine.


StockFetcher Forums · Filter Exchange · Combine Two Filters<< >>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.