StockFetcher Forums · Filter Exchange · Index Movement?<< >>Post Follow-up
__fetcheruser123
msg #44806
Ignore __fetcheruser123
6/9/2006 5:25:33 PM

Is there a way to check if an index is moving a certain way and incorporate it into a filter?

Something like:

Show stocks where MACD fast line(12,26) crossed above MACD slow line(12,26) within the last 1 day
and slope of ^DIA has been increasing for the last 2 days


nikoschopen
2,824 posts
msg #44809
Ignore nikoschopen
6/9/2006 7:05:05 PM

I would think that only way for the slope to turn up is for the stock or index to close higher. So I changed it from "slope of ^DIA has been increasing for the last 2 days" to read something like "the close of ^DIA has been increasing for the last 2 days".

Fetcher[
set{if, count(ind(^DIA,close) has been increasing for the last 2 days,1)}
set{then, if * MACD fast line(12,26)}
then crossed above MACD slow line(12,26) within the last 1 day
and compare to ^DIA
/*add price & volume criteris below this line*/
]




rtucker
318 posts
msg #44832
Ignore rtucker
6/10/2006 1:57:11 PM

Chris,

This is an example ( the testing portion written by TRO) to "disable" buying rsi(2) < 1 if nasdaq is below ma(5)

Fetcher[set{QQQQtest, count(ind(QQQQ,close) above ind(QQQQ,MA(5)),1) }

/* IS THE CLOSE OF THE QQQQ ABOVE THE MA(5) */

QQQQtest equals 1

/* FILTER GOES HERE */

and rsi(2) < 1
and price * avg vol(2) > 200000
and price > 1
and draw ma(5)
]




__fetcheruser123
msg #44846
Ignore __fetcheruser123
6/10/2006 6:16:40 PM

Thanks guys, that's exactly what I was looking for.


StockFetcher Forums · Filter Exchange · Index Movement?<< >>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.