This function calculates the adjusted
Open, High, Low, and Close prices according
to split and dividend information.
There are three methods available to
calculate the new OHLC object prices.
By default, getSplits
and getDividends
are
called to retrieve the respective information. These
may dispatch to custom methods following the “.”
methodology used by quantmod dispatch. See getSymbols
for information related to extending quantmod.
This information is passed to
adjRatios
from the TTR package, and
the resulting ratio calculations are used to adjust
to observed historical prices.
This is the most precise way to adjust a series.
The second method works only on standard
Yahoo! data containing an explicit
Adjusted column.
A final method allows for one to pass
a ratio
into the function directly.
All methods proceed as follows:
New columns are derived by taking the
ratio of adjusted value to original Close, and multiplying
by the difference of the respective column and the
original Close. This is then added to the modified Close
column to arrive at the remaining ‘adjusted’
Open, High, Low column values.
If no adjustment is needed, the function returns the
original data unaltered.