Skip to content

getSymbols.yahoo 'adjusting' to NA

7 messages · G See, Joshua Ulrich

#
On Sun, May 15, 2011 at 3:39 PM, G See <gsee000 at gmail.com> wrote:
Because you included the 'to' argument in your call to getDividends
and getSplits; and it's not included in those calls within
getSymbols.yahoo.  I'll take a closer look at this...

Best,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com
#
Hi Garrett,
On Sun, May 15, 2011 at 4:33 PM, G See <gsee000 at gmail.com> wrote:
I consider this a bug in TTR::adjRatios.  It should discard any
split/dividend data that lie outside the range of the close data.  I
will patch tonight.

This issue manifests in adjustOHLC because all historical
split/dividend data for "x" is pulled, not just historical data up to
the last date in "x".  Perhaps adjustOHLC should use a "to=" argument
for getDividends and getSymbols as well...

Thanks for the report!

Best,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com
13 days later
#
Garrett,

My attempt to patch this a couple weeks ago uncovered some other
issues (via R CMD check) that I wanted to resolve before responding.
As of revision 111 on R-forge, adjRatios() ignores split/dividend data
that do not have corresponding close prices.

Sorry for the delay.

Best,
--
Joshua Ulrich ?| ?FOSS Trading: www.fosstrading.com
On Mon, May 16, 2011 at 10:43 AM, Joshua Ulrich <josh.m.ulrich at gmail.com> wrote: