-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yahoo Finance now providing unadjusted OHL #174
Comments
It looks like the adjusted column is now adjusted for dividends again. Take MSFT's $3.08/share special dividend on 2004-11-15 for example. The OHL have the same $3/share drop as the close price, but the adjusted close does not (because the shareholder received the dividend).
But it seems like the OHL prices are still adjusted for splits. Take MSFT's last 2/1 split on 2003-02-18 for example. The close price drops by half, but the OHL prices do not.
|
@joshuaulrich suggestion: For example, I downloaded MSFT yahoo csv from yahoo and reversed adjustments:
Also it might be convenient to change 1- Adding an option to select which columns to adjust, something like
2- Maybe give an option to reverse adjustment, for example
|
I'm just mentioning this as a passing comment, I'm not close to a computer so can't cut and paste or do anything reproducible. I will try to reply tomorrow, if necessary, with something more detailed. But anyway, getSymbols.yahoo now seems to be returning adjusted prices for all OHLC. For instances for getSymbols(c('VXX', 'UAA')), the Close and Adj.Close are the same for all of their history, despite them having multiple splits. Based on the above comment I'm not sure if this involves a breaking change in how getSymbols.yahoo works, or more likely just another change in how Yahoo! Finance works, since it also seems to be adjusting OHLC. Aug 09, 2016 36.71 37.20 35.88 36.56 36.56 13,481,100 Sorry for the formatting, I'm writing this from an iPhone. |
Hi, Is there a workaround for this using Yahoo or estimate on when it may be fixed? Thanks for the great package! |
Agree with @selgamal , or at least, would be great if getSymbols can have one more option to return Yahoo data as it is. For the moment I am doing a simple copy of getSymbols.yahoo and remove the following lines:
It works but it's just a very naive temporary solution. |
As documented in commit 7936018 for #157, Yahoo was initially providing adjusted Open, High, and Low prices. This appears to have been reverted to the prior behavior, as you can see the data in the downloaded file has unadjusted Open, High, and Low prices.
This causes the data returned by
getSymbols()
to be incorrect, because it had been unadjusting the adjusted OHL prices. Now the OHL prices are incorrect becausegetSymbols()
is unadjusting unadjusted prices.Also need to check if the Adjusted Close is still only split-adjusted or is back to being split- and dividend-adjusted.
Thanks to mql4beginner for noticing this and asking a question on StackOverflow.
The text was updated successfully, but these errors were encountered: