Applying MACD on yahoo financial data?

3 vues (au cours des 30 derniers jours)
j sberg
j sberg le 10 Fév 2016
Modifié(e) : j sberg le 10 Fév 2016
Hi. I'am trying to apply MACD on yahoo finance data that i fetch from yahoo via the built in fetcher.
This is how my code looks now:
c = yahoo;
d = fetch(c,'IBM',{ 'Open', 'High','Low','Close','Volume' },now-300,now-1,'d')
dis_CloseMACD = macd(s);
plot(dis_CloseMACD);
title('MACD for IBM')
But the output is incorrect! Any idea why? Also can i fetch data from yahoo so it starts with the earliest data first?
Regards

Réponses (0)

Catégories

En savoir plus sur Money.Net dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by