Applying MACD on yahoo financial data?

조회 수: 3 (최근 30일)
j sberg
j sberg 2016년 2월 10일
편집: j sberg 2016년 2월 10일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Money.Net에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by