{"id":1423,"date":"2017-06-30T11:12:23","date_gmt":"2017-06-30T10:12:23","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=1423"},"modified":"2017-07-21T23:53:13","modified_gmt":"2017-07-21T22:53:13","slug":"wrong-close-price-in-yahoo-data","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2017\/06\/30\/wrong-close-price-in-yahoo-data\/","title":{"rendered":"Wrong close price in Yahoo data (no more?)"},"content":{"rendered":"
July 22, 2017 UPDATE : Old format line<\/p> should be changed to:<\/p> A ready to use aqh.format file can be downloaded from here<\/a> (right click and choose “Save target as…”). Place it into “Formats” subdirectory.<\/p> <\/font><\/p> You may have noticed over last few days that on some symbols (stocks and ETF that pay dividends) close price is below open, high, low prices.<\/p> This is new Yahoo error due to the fact that they added “dividend adjustments” incorrectly In the period May 17 – June 10, Yahoo was NOT adjusting for dividends so OHLC prices were adjusted for splits only.<\/p> Charts looked correct (albeit without dividend adjustments).<\/p> Then people sent complaints about missing dividend adjustments and Yahoo started adjusting for Dividends, but… only Close price, leaving High, Low, Open adjusted for Splits only.<\/p> Here is example of EWJ data downloaded from Yahoo:<\/p> The columns are as follows:<\/p> As you can see adjusted for splits÷nds close price (35.239758) is lower than adjusted low (38.880001)<\/p> So here is where the mess is coming from.<\/p> Yahoo is adjusting High, Low, Open fields for splits but at the same time they are adjusting Close field for splits and dividends.<\/p> That is why you are getting Close field below OHL fields and strange looking charts.<\/p> Another example – this time straight from Yahoo web site.<\/p>
Yahoo today changed the order of columns (swapped \u201cClose\u201d with \u201cAdjusted Close\u201d).
To fix, you need to edit aqh.format file (in Formats subdirectory).<\/p>
$FORMAT Date_DMY,Open,High,Low,Skip,Close,Volume
<\/code><\/p>
$FORMAT Date_DMY,Open,High,Low,Close,Skip,Volume
<\/code><\/p>
http:\/\/forum.amibroker.com\/t\/amiquote-3-15-is-coming\/171\/18<\/a><\/p>02-08-2010, 39.000000, 39.360001, 38.880001, 9.840000, 35.239758, 4488800<\/code><\/p>
Date, AdjOpen, AdjHigh, AdjLow, RawClose, AdjCloseForSplitsAndDividends, Volume<\/code><\/p>