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 287, Tue Mar 16 14:37:31 2010 UTC revision 309, Sun Mar 28 15:38:49 2010 UTC
# Line 115  Line 115 
115  print("trade blotter portfolio update:")  print("trade blotter portfolio update:")
116  print(end_t-start_t)  print(end_t-start_t)
117    
118    # hack for new quantmod graphics, remove later
119    themelist<-chart_theme()
120    themelist$up.col<-'lightgreen'
121    themelist$down.col<-'pink'
122  for(symbol in symbols){  for(symbol in symbols){
123      dev.new()      dev.new()
124      chart.Posn(Portfolio='longtrend',Symbol=symbol,theme=chartTheme('white', up.col='lightgreen', dn.col='pink'), type='bar')      chart.Posn(Portfolio='longtrend',Symbol=symbol,theme=themelist)
125      plot(addSMA(n=10,col='darkgreen', on=1))      plot(add_SMA(n=10,col='darkgreen', on=1))
126  }  }
127    
128    

Legend:
Removed from v.287  
changed lines
  Added in v.309

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