StockFetcher Forums · Filter Exchange · need help - EMA20 crossover EMA40<< >>Post Follow-up
sixerwrong@gmail.com
12 posts
msg #148958
Ignore sixerwrong@gmail.com
8/20/2019 4:25:28 AM

hello to all,
sorry for asking again but i really do not know the SF language. can anyone tell me how to make a filter that has EMA20 crossover EMA40 maybe 2 days ago or something like that. my idea is to search for clear change in trends.

thanks in advance
appreciate all the help guys :)

graftonian
1,089 posts
msg #148960
Ignore graftonian
8/20/2019 9:36:44 AM

Check out tools/filter phrases

crossed above/below


Usage indicator crossed above indicator [within the last #number {days,weeks,months,years}]
indicator crossed above value [within the last #number {days,weeks,months,years}]

indicator crossed below indicator [within the last #number {days,weeks,months,years}]
indicator crossed below value [within the last #number {days,weeks,months,years}]

Description Use the crossed phrase to indicate when the stock price, or indicator value, reaches and breaks-through a particular value or indicator. This phrase is perfect for finding moving average crossovers as well as broken resistance or trend changes. Also, through the optional time period specified at the end of this phrase, a user can specify a time frame for the crossover.

Examples MA(10) crossed above MA(50)
Low crossed below the lower bollinger band(20)
RSI(15) crossed below 30 within the last 3 days

mahkoh
1,065 posts
msg #148965
Ignore mahkoh
modified
8/21/2019 5:08:45 AM

Fetcher[
sp500
count(ema(20) crossed above ema(40),6) equal 1
]



sixerwrong@gmail.com
12 posts
msg #148966
Ignore sixerwrong@gmail.com
8/21/2019 11:50:40 AM

thanks for the help guys

snappyfrog
721 posts
msg #148975
Ignore snappyfrog
8/21/2019 9:29:13 PM

EMA20 crossover EMA40 maybe 2 days ago or something like that. my idea is to search for clear change in trends.
**************

Fetcher[
EMA(20) 2 days ago crossed above EMA(40) 2 days ago
]



dltharpe
10 posts
msg #149003
Ignore dltharpe
modified
8/27/2019 10:07:11 PM

can you do a phrase like this but within a day range, something like
MA(20) crossed above MA(40)...anytime within the past 10 days...I know I can but the "within" syntax doesn't seem to work great and when I search for it, it looks like its used for back testing.

four
5,087 posts
msg #149004
Ignore four
modified
8/27/2019 11:52:54 PM

Please consider working through the guide
https://www3.stockfetcher.com/download/sfuserguide2_0.pdf

---------

Fetcher[
/* MA(20) crossed above MA(40)...anytime within the past 10 days */
low > 20
volume > 263123
optionable

set{x1, count(ma(20) crossed above ma(40),1)}
set{x2, sum(x1,10)}
add column x2
draw x1 /*Mark all cross dates on chart*/
draw x2 > 0 /* Require filter to show only if 1 or more crosses have occurred within 10 day time */
do not draw x2
draw ma(20)
draw ma(40)
]



StockFetcher Forums · Filter Exchange · need help - EMA20 crossover EMA40<< >>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.