0

Yahoo query api 50 day and 200 day moving averages data is incorrect...

Hey guys,

I was hoping someone could help me. I am using the yahoo finance api to get the 50 and 200 moving average data for stocks. All seemed great at first until I compared the results returned to yahoo's own stock charts. The data was very different and it appears these values aren't accurate.

I saw a couple of threads saying the (m3) 50 dma and (m4) 200 dma algorithm from yahoo was changed to only use calendar days rather than trading days which is more accurate.

here is the url I'm hitting http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%AAPL%22)%0A%09%09&&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys

Can someone tell me how to get the accurate 50 and 200 moving average data from yahoo or somewhere else? Can anyone from yahoo answer if this data is inaccurate?

thanks in advance!

by
3 Replies
  • One correction...here is correct url to get data...first post was typo and incorrect<br><br>http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL%22)%0A%09%09&&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys<br><div class="quote "><div class="quotetop "><br>QUOTE<cite>(ChrisD @ 6 Sep 2011 6:47 PM)</cite><blockquote class="quotemain">Hey guys,<br><br>I was hoping someone could help me. I am using the yahoo finance api to get the 50 and 200 moving average data for stocks. All seemed great at first until I compared the results returned to yahoo&#39;s own stock charts. The data was very different and it appears these values aren&#39;t accurate.<br><br>I saw a couple of threads saying the (m3) 50 dma and (m4) 200 dma algorithm from yahoo was changed to only use calendar days rather than trading days which is more accurate.<br><br>here is the url I&#39;m hitting&nbsp;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%AAPL%22)%0A%09%09&&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys<br><br>Can someone tell me how to get the accurate 50 and 200 moving average data from yahoo or somewhere else? Can anyone from yahoo answer if this data is inaccurate?<br><br>thanks in advance!<br></blockquote></div></div>
    0
    • Sep 8, 2011
    Hi Chris,<br><br>I noticed just tonight that I&#39;m experiencing the exact same problem. &nbsp;Let me know if you find a solution.<br><br>A----<br><br><br><div class="quote "><div class="quotetop ">QUOTE<cite>(ChrisD @ 6 Sep 2011 6:51 PM)</cite><blockquote class="quotemain"><div class="quote "><div class="quotetop "><blockquote class="quotemain"><br>I was hoping someone could help me. I am using the yahoo finance api to get the 50 and 200 moving average data for stocks. All seemed great at first until I compared the results returned to yahoo&#39;s own stock charts. The data was very different and it appears these values aren&#39;t accurate.<br><br></blockquote></div></div></blockquote></div></div>
    0
    • Sep 8, 2011
    This Google API call will return a year&#39;s worth of historical prices in CSV format -- it isn&#39;t ideal, but you can calculate your own (correct) 50 and 200 day averages from the resulting data:<br><br>http://www.google.com/finance/historical?q=NASDAQ:GOOG&output=csv<br><br>Allan<br><br><br><div class="quote "><div class="quotetop ">QUOTE<cite>( @ 8 Sep 2011 8:01 PM)</cite><blockquote class="quotemain">Hi Chris,<br><br>I noticed just tonight that I&#39;m experiencing the exact same problem. &nbsp;Let me know if you find a solution.<br><br>A----<br><br><br><div class="quote "><div class="quotetop ">QUOTE<cite>(ChrisD @ 6 Sep 2011 6:51 PM)</cite><blockquote class="quotemain"><div class="quote "><div class="quotetop "><blockquote class="quotemain"><br>I was hoping someone could help me. I am using the yahoo finance api to get the 50 and 200 moving average data for stocks. All seemed great at first until I compared the results returned to yahoo&#39;s own stock charts. The data was very different and it appears these values aren&#39;t accurate.<br><br></blockquote></div></div></blockquote></div></div></blockquote></div></div>
    0

Recent Posts

in YQL