library("quantmod")
getSymbols(c("IBM",'YHOO','AIA'))
getSymbols("YHOO")
getSymbols("IBM")
tail(AIA)
tail(IBM)
tail(YHOO)
IBM_ret=dailyReturn(IBM)
IBM_ret=dailyReturn(IBM)
YHOO_ret=dailyReturn(YHOO)
AIA_ret=dailyReturn(AIA)
data=merge(IBM_ret,YHOO_ret,AIA_ret)
tail(data)
library("timeSeries")
data1=as.timeSeries(data)
data1
library("fPortfolio")
Frontier=portfolioFrontier(data1)
Frontier
getSymbols(c("IBM",'YHOO','AIA'))
getSymbols("YHOO")
getSymbols("IBM")
tail(AIA)
tail(IBM)
tail(YHOO)
IBM_ret=dailyReturn(IBM)
IBM_ret=dailyReturn(IBM)
YHOO_ret=dailyReturn(YHOO)
AIA_ret=dailyReturn(AIA)
data=merge(IBM_ret,YHOO_ret,AIA_ret)
tail(data)
library("timeSeries")
data1=as.timeSeries(data)
data1
library("fPortfolio")
Frontier=portfolioFrontier(data1)
Frontier