I need to create holding returns on 100USD from 3 different stocks.
I made a data frame containing stocks GE, IBM and index NYA taken from yahoo:
stocks <- as.xts(data.frame(GE = GE[,6], IBM = IBM[,6], NYA = NYA[,6]))
Then, I found their returns:
stocks_return <- diff(log(stocks))
Now what I need is to create a plot which displays the holding returns for all three time series if I invest 100USD.