StockFetcher Forums · Filter Exchange · Searching for stock but only if index is in uptrend?<< >>Post Follow-up
watzdorf
21 posts
msg #56675
Ignore watzdorf
11/11/2007 3:30:40 PM

Is it possible to write a filter that only starts giving results when, lets say the Nasdaq index is above MA (200) ?

or
show stocks above MA(50)
IF
Dow 30 ADX is above 30
Market is Dow30

Thank you
alex

TheRumpledOne
6,411 posts
msg #56680
Ignore TheRumpledOne
modified
11/11/2007 10:10:51 PM

Fetcher[
ind(^IXIC, close) above ind(^IXIC, ma(200))

market is nasdaq 100
]



watzdorf
21 posts
msg #56688
Ignore watzdorf
11/12/2007 4:35:22 AM

Thank you TRO

SFMc01
358 posts
msg #56692
Ignore SFMc01
11/12/2007 8:51:04 AM

TRO: I also thank you for your response. I have a related question.

I want to backtest a filter that only provides results in either an up or down market. Simply, I suspect a certain filter just doesn't work well in a down market. Do you have a suggestion of how would I enter a condition such that the filter would only provide results if the market was up ... or down?

Thank you ... Steve

TheRumpledOne
6,411 posts
msg #56697
Ignore TheRumpledOne
modified
11/12/2007 12:56:01 PM

If I understand the question, use the same code.

StockFetcher Forums · Filter Exchange · Searching for stock but only if index is in uptrend?<< >>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.