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
|