StockFetcher Forums · Filter Exchange · weekly MA<< >>Post Follow-up
ikki
4 posts
msg #48284
Ignore ikki
12/1/2006 12:00:56 PM

I have been trying to create a filter where a 8 EMA crosses over or below a 21 EMA on a weekly chart and it crossed one week ago. Any help?
Thanks


TheRumpledOne
6,407 posts
msg #48294
Ignore TheRumpledOne
modified
12/1/2006 7:28:21 PM

Fetcher[
/* WEEKLY EMA(08) X EMA(21) */

set{E0821b,days(weekly ema(8) is above weekly ema(21),100)}
set{E0821a,days(weekly ema(8) is below weekly ema(21),100)}
set{E08xE21, E0821a - E0821b}

add column E08xE21
add column high 5 week high
add column low 5 week low

close above 20
volume above 10000000
market is nasdaq

sort column 5 descending
chart-display is weekly
draw weekly ema(8)
draw weekly ema(21)
draw high 5 week high
draw low 5 week low
]



Column E08xE21 tells you how many weeks since the ema(8) crossed above/below ema(21).

If you look at the BASIC FILTER FOR NEWBIES AND OLD PROS thread, you'll find most of the code you'll need to create your own filters. Of course, you can just use it as is, too.

HTH.








StockFetcher Forums · Filter Exchange · weekly MA<< >>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.