[Blotter-commits] r1538 - pkg/quantstrat/demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Oct 17 21:05:26 CEST 2013


Author: opentrades
Date: 2013-10-17 21:05:26 +0200 (Thu, 17 Oct 2013)
New Revision: 1538

Modified:
   pkg/quantstrat/demo/luxor.include.R
Log:
- now removing lingering portfolio, account, strategy and order book objects from .blotter and .strategy environments before running any luxor demo



Modified: pkg/quantstrat/demo/luxor.include.R
===================================================================
--- pkg/quantstrat/demo/luxor.include.R	2013-10-17 19:02:10 UTC (rev 1537)
+++ pkg/quantstrat/demo/luxor.include.R	2013-10-17 19:05:26 UTC (rev 1538)
@@ -18,7 +18,7 @@
 
 strategy.st = 'luxor'
 portfolio.st = 'forex'
-account.st = 'IB1'
+account.st = 'IB'
 
 ###
 
@@ -63,3 +63,5 @@
 .stoptrailing <- 0.8/100
 .takeprofit <- 2.0/100
 
+suppressWarnings(rm(list = c(paste("account", account.st, sep='.'), paste("portfolio", portfolio.st, sep='.')), pos=.blotter))
+suppressWarnings(rm(list = c(strategy.st, paste("order_book", portfolio.st, sep='.')), pos=.strategy))



More information about the Blotter-commits mailing list