SCM

SCM Repository

[blotter] Diff of /pkg/quantstrat/demo/faber.R
ViewVC logotype

Diff of /pkg/quantstrat/demo/faber.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1506, Sat Sep 14 11:56:33 2013 UTC revision 1530, Tue Oct 15 18:15:40 2013 UTC
# Line 153  Line 153 
153          getSymbols("SPY", src='yahoo', index.class=c("POSIXt","POSIXct"), from='1999-01-01')          getSymbols("SPY", src='yahoo', index.class=c("POSIXt","POSIXct"), from='1999-01-01')
154          SPY<-to.monthly(SPY)          SPY<-to.monthly(SPY)
155          SPY.ret<-Return.calculate(SPY$SPY.Close)          SPY.ret<-Return.calculate(SPY$SPY.Close)
   SPY.ret<-na.omit(SPY.ret)  
156          index(SPY.ret)<-index(ret1)          index(SPY.ret)<-index(ret1)
157          dev.new()          dev.new()
158          charts.PerformanceSummary(cbind(ret1$total,SPY.ret), geometric=FALSE, wealth.index=TRUE)          charts.PerformanceSummary(cbind(ret1$total,SPY.ret), geometric=FALSE, wealth.index=TRUE)

Legend:
Removed from v.1506  
changed lines
  Added in v.1530

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge