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 599, Thu Apr 28 14:57:19 2011 UTC revision 621, Thu Jun 9 23:18:04 2011 UTC
# Line 46  Line 46 
46  require(quantstrat)  require(quantstrat)
47    
48  # Try to clean up in case the demo was run previously  # Try to clean up in case the demo was run previously
49  try(rm("account.faber","portfolio.faber",pos=.blotter),silent=TRUE)  suppressWarnings(rm("account.faber","portfolio.faber",pos=.blotter))
50  try(rm("ltaccount","ltportfolio","ClosePrice","CurrentDate","equity","GSPC","stratFaber","initDate","initEq","Posn","UnitSize","verbose"),silent=TRUE)  suppressWarnings(rm("ltaccount", "ltportfolio", "ClosePrice", "CurrentDate", "equity",
51  try(rm("order_book.faber",pos=.strategy),silent=TRUE)              "GSPC", "stratFaber", "initDate", "initEq", "Posn", "UnitSize", "verbose"))
52    suppressWarnings(rm("order_book.faber",pos=.strategy))
53    
54  # Set initial values  # Set initial values
55  initDate='1997-12-31'  initDate='1997-12-31'

Legend:
Removed from v.599  
changed lines
  Added in v.621

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