[Blotter-commits] r172 - pkg/blotter/demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jan 16 11:04:19 CET 2010


Author: braverock
Date: 2010-01-16 11:04:19 +0100 (Sat, 16 Jan 2010)
New Revision: 172

Modified:
   pkg/blotter/demo/longtrend.R
Log:
- clean up the environment after running longtrend so that it may be run again

Modified: pkg/blotter/demo/longtrend.R
===================================================================
--- pkg/blotter/demo/longtrend.R	2010-01-16 09:52:30 UTC (rev 171)
+++ pkg/blotter/demo/longtrend.R	2010-01-16 10:04:19 UTC (rev 172)
@@ -106,6 +106,10 @@
 chart.Posn(portfolio, Symbol = 'GSPC', Dates = '1998::', theme=chartTheme('white',up.col='lightgreen',dn.col='pink'), type='bar')
 plot(addTA(GSPC$SMA10['1998::',],pch=1,type='l',col='darkgreen', on=1))
 
+cat('\n')
+cat('cleaning up \n')
+rm("account","ClosePrice","CurrentDate","equity","GSPC","i","initDate","initEq","portfolio","Posn","UnitSize","verbose")
+rm("account.longtrend","portfolio.longtrend",pos=.blotter)
 
 ###############################################################################
 # Blotter: Tools for transaction-oriented trading systems development



More information about the Blotter-commits mailing list