StockFetcher Forums · General Discussion · EMA calculated at close vs open<< >>Post Follow-up
dlaposky
6 posts
msg #95154
Ignore dlaposky
7/28/2010 9:06:08 AM

I would like to get a EMA (5) calculated from the close crossing EMA(6) calculated from the open filter. Does Stock fetcher have that capability and if so how does one write it.

Kevin_in_GA
4,599 posts
msg #95159
Ignore Kevin_in_GA
7/28/2010 10:19:37 AM

would like to get a EMA (5) calculated from the close crossing EMA(6) calculated from the open filter. Does Stock fetcher have that capability and if so how does one write it.
+++++++

Fetcher[

set{emaclose, cema(close,5)}
set{emaopen, cema(open,6)}

set{crossabove, count(emaclose crossed above emaopen, 1)}
set{crossbelow, count(emaclose crossed below emaopen, 1)}
add column crossabove
add column crossbelow

draw emaclose on plot price
draw emaopen on plot price

]



Use the custom ema function, which makes an ema from any value or indicator you want. The second set of code lines simply gives you a "1" in the column if the emaclose crosses above or below the emaopen (or vice versa if you are looking for the reverse)

dlaposky
6 posts
msg #95165
Ignore dlaposky
7/28/2010 10:46:47 AM

Thanks so much Kevin in Ga from Dave in Mn

StockFetcher Forums · General Discussion · EMA calculated at close vs open<< >>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.