StockFetcher Forums · General Discussion · Code wanted<< >>Post Follow-up
Mactheriverrat
3,135 posts
msg #133830
Ignore Mactheriverrat
modified
1/20/2017 12:43:27 AM

Looking for some code to tell the difference between 2 different averages . Like say ema(30) and ema(55).

four
5,087 posts
msg #133831
Ignore four
modified
1/20/2017 2:37:03 AM

Fetcher[
/*difference of ema(30) and ema(55)*/

draw ema(30)
draw ema(55)
set{dif, ema(30) - ema(55)}
draw dif line at 0
draw macd(30,55,1) line at 0
]



four
5,087 posts
msg #133832
Ignore four
modified
1/20/2017 2:48:46 AM

"Originally developed by Gerald Appel, the MACD is a momentum oscillator employing two exponential moving averages. To create the MACD, the difference of the two moving averages is plotted as the primary plot."

draw macd(30,55,1) line at 0

Mactheriverrat
3,135 posts
msg #133839
Ignore Mactheriverrat
1/21/2017 2:45:24 AM

Thanks FOUR!

four
5,087 posts
msg #133840
Ignore four
1/21/2017 1:32:04 PM

Welcome

StockFetcher Forums · General Discussion · Code wanted<< >>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.