md_stock_adjust adjusts the open, high, low and close stock prices.

md_stock_adjust(dt, forward = FALSE, ...)

Arguments

dt

a list/dataframe of time series datasets that didnt adjust for split or dividend.

forward

forward adjust or backward adjust, defaults to FALSE.

...

Additional parameters.

Examples

# \donttest{
data("dt_banks")

dtadj1 = md_stock_adjust(dt_banks, adjust = FALSE)
dtadj2 = md_stock_adjust(dt_banks, adjust = TRUE)
# }