StockFetcher Forums · Filter Exchange · Can use some help with coding<< >>Post Follow-up
rsarno
103 posts
msg #118207
Ignore rsarno
2/17/2014 11:54:39 AM

Id like to code this so i can backtest it, would anyone help me out? Some of the simple indicators I have been able to code, but many I have problems with language

1. Current stock price is above both the 150-(30 week) and the 200 day-(40week) moving average lines.
2. The 150 day moving average is above the 200 day moving average.
3. The 200 day moving average is trending up for at least 1 month.
4. The 50day moving average is above both the 150dma and 200dma.
5. The stock price is trading above or approaching the 50DMA.
6. The stock price is at least 30% above it's 52 week low.
7. The current stock price is within 20% of it's 52 week high.


dwiggains
444 posts
msg #118217
Ignore dwiggains
2/18/2014 9:21:57 AM

Fetcher[
close > ma (150)
close > ma (200)
ma (150) > ma (200)
ma (200) > ma (200) 1 month ago
ma (50) > ma (150)
ma (50) > ma (200)
close > ma (50)
close > 30% above 52 week low
close < 20% below 52 week high
]



I think this got all you have ask for.

Good luck
See ya
David

StockFetcher Forums · Filter Exchange · Can use some help with coding<< >>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.