StockFetcher Forums · Filter Exchange · Filter Help Please!<< >>Post Follow-up
meanrvrsn
3 posts
msg #160395
Ignore meanrvrsn
6/28/2023 8:09:44 AM

Can someone help me program the following filter:

This is a 3 Days consolidation scanner for inside days:

1) There can be no close above or below the mother bar for 3 days
2) price above the 9/21 EMA
3) 9EMA above the 21EMA

Thank you

dwiggains
444 posts
msg #160396
Ignore dwiggains
6/28/2023 11:41:35 AM

Fetcher[
close > 1
average volume (20) > 300000
close < high 3 days ago
close > low 3 days ago
close 1 day ago < high 3 days ago
close 1 day ago > low 3 days ago
close 2 days ago < high 3 days ago
close 2 days ago > low 3 days ago
close > EMA 9/21
9EMA > 21 EMA
]



Not very pretty
but I think it works
I think 9EMA > 21 EMA is redundant and not needed

see ya
david

nibor100
1,046 posts
msg #160397
Ignore nibor100
6/29/2023 4:23:16 AM

Well, that filter clearly isn’t what he asked for, though I’m not sure what ema 9/21 is supposed to mean.

In SF ema indicators require parentheses around the numbers else SF draws a 26 period ema which is not a 9ema, nor a 21ema, nor even a 9 divided by 21 ema!

Ed S.

xarlor
587 posts
msg #160401
Ignore xarlor
6/30/2023 7:42:54 AM

Fetcher[
/* This is a 3 Days consolidation scanner for inside days: */
/* https://www.stockfetcher.com/forums/Filter-Exchange/Filter-Help-Please/160395 */

/* 1) There can be no close above or below the mother bar for 3 days */

set{upper,max(open,close)}
set{lower,min(open,close)}

upper 2 days ago <= upper 3 days ago
lower 2 days ago >= lower 3 days ago
upper 1 day ago <= upper 3 days ago
lower 1 day ago >= lower 3 days ago
upper <= upper 3 days ago
lower >= lower 3 days ago

/* 2) price above the 9/21 EMA */

close > ema(9)
close > ema(21)

/* 3) 9EMA above the 21EMA */

ema(9) > ema(21)

do not draw upper
do not draw lower
]



Results appear mixed. I would limit the universe of stocks and include a line to confirm ticker is already in an uptrend. An example would be:

optionable
close > wma(150) for last 100 days

Those two lines make this filter return consistent winners.

StockFetcher Forums · Filter Exchange · Filter Help Please!<< >>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.