Skip to content
Prev 13872 / 15274 Next

adjustOHLC.R issues

The output of adjustOHLC and {yahoo}.Adjusted will only rarely, if ever, 
agree, since we don't know when they are starting the adjustment, or how 
they are doing the adjustment.  There are many threads over the years on 
this list about this issue which I'm sure Google can locate for you.

Nevertheless ...

What 'most of the references' are those?

Your equation doesn't subtract dividends or apply splits to arrive at 
the new ratio, and is not a continuous-time process.  (as such, it 
cannot be correct) The ratio changes over time based on the accumulation 
of splits and dividends.

We can easily reference the code, by typing

adjustOHLC

at the prompt, or you could produce an equation which actually includes 
the splits and dividends for which we must adjust ...

I suggest that in addition to the code we use a slightly more 
authoritative source than Yahoo, e.g. CRSP:

http://www.crsp.com/products/documentation/crsp-calculations

 From my read of the code, this is what adjustOHLC is doing.

I believe that your error is in not realizing that the ratio changes 
over time.

Brian
On 04/11/2016 08:48 PM, Ernie Stokely wrote: