StockFetcher Forums · Filter Exchange · % of time above a stock's 20-day EMA<< 1 2 >>Post Follow-up
544 posts
msg #99195
Ignore glgene
2/17/2011 11:00:19 PM


Good point! Examples, per your suggestion to consider 49 days in lieu of 50:

47 out of 50 = 94.00%
47 out of 49 = 95.92%

17 out of 50 = 34.00%
17 out of 49 = 34.69%

Thank you, again, and thank Kevin, again, for your fine contributions to this ongoing msg. and replies. I appreciate it.

I'll post my final script shortly (showing multiple time frames for multiple stocks).


544 posts
msg #99197
Ignore glgene
2/18/2011 12:59:05 AM

Here's my work-in-progress, with a 21-stock list. Sorted on Current price to EMA(20) % descending. Added RSI info.

Look at the Chart views, too. Included EMA(20) graph line, RSI info, and Average Volume (50) line.

Welcome any constructive input. Thanks, again, for the help provided. Without it, I couldn't have completed this task.


add column rsi(14)
add column ema(20)
add column separator

set{p, close/ema(20)}
set{p1, p*100}
add column p1{Price to EMA(20) %}
add column p1 1 day ago{1 day ago}
add column separator

set{5d, count(close above ema(20),5)}
set{5d1, 5d/5}
set{5d%, 5d1 * 100}
add column 5d%{Over last 5 days , % > ema(20)}

set{10d, count(close above ema(20),10)}
set{10d1, 10d/10}
set{10d%, 10d1 * 100}
add column 10d%{10 days %}

set{20d, count(close above ema(20),20)}
set{20d1, 20d/20}
set{20d%, 20d1 * 100}
add column 20d%{20 days %}

set{50d, count(close above ema(20),50)}
set{50d1, 50d/50}
set{50d%, 50d1 * 100}
add column 50d%{50 days %}

set{100d, count(close above ema(20),100)}
set{100d1, 100d/100}
set{100d%, 100d1 * 100}
add column 100d%{100 days %}

draw ema(20)
draw rsi(14)
draw average volume(50)

sort column 8 descending


StockFetcher Forums · Filter Exchange · % of time above a stock's 20-day EMA<< 1 2 >>Post Follow-up

*** Disclaimer *** 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. does not recommend particular securities., 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 2018 - 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