Skip to content
Prev 10765 / 15274 Next

adjustOHLC discrepancy

On Tue, Sep 18, 2012 at 7:25 PM, Jim Green
<student.northwestern at gmail.com> wrote:
The adjusted close values from adjustOHLC will rarely ever be the same
as the adjusted close values provided by Yahoo.  I'm not sure I ever
figured out exactly how Yahoo calculates the adjusted close, but the
method used by adjustOHLC is simple and transparent (i.e. OSS).
It's likely precision and/or an error in Yahoo's data.  A $0.10
dividend was ex-dividend on 2009-01-29 (the first big difference),
when C was trading ~$4.  The simple return of the raw (adjusted) close
prices between the 1/28 and 1/29 is -0.0736342 (-0.07132634).  The
adjusted close should reverse the ~2.5% drop in price due to the
dividend payment, but they're nearly identical (especially given 2
decimal precision).

Keep in mind that adjustOHLC with use.Adjusted=FALSE simply pulls
split and dividend data from Yahoo and re-computes the adjustment
ratios.  So if Yahoo's split and/or dividend data are incorrect, the
results of adjustOHLC will be incorrect too.

That said, something looks very odd with the results of adjustOHLC:
getSymbols('C',from='1900-01-01')
citi <- adjustOHLC(C)
chart_Series(citi)
I hope that helps a bit, though I realize I probably created more
questions for you than I answered.

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com