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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Sep 13 04:22:16 CEST 2011


Author: gsee
Date: 2011-09-13 04:22:14 +0200 (Tue, 13 Sep 2011)
New Revision: 776

Modified:
   pkg/quantstrat/demo/parameterTest.R
   pkg/quantstrat/demo/parameterTestMACD.R
Log:
 typos

Modified: pkg/quantstrat/demo/parameterTest.R
===================================================================
--- pkg/quantstrat/demo/parameterTest.R	2011-09-13 01:00:46 UTC (rev 775)
+++ pkg/quantstrat/demo/parameterTest.R	2011-09-13 02:22:14 UTC (rev 776)
@@ -37,6 +37,6 @@
 #pConstr<-setParameterConstraint()
 pConstraint<-setParameterConstraint(constraintLabel='PC1',paramList=c('sd','n'),relationship='gt')
 
-testPackList<-applyParameter(strategy=stratBBands,portfolios='bbands',parameterPool=tPD,method='random',sampleSize=2,parameterConstrains=pConstraint)
+testPackList<-applyParameter(strategy=stratBBands,portfolios='default',parameterPool=tPD,method='random',sampleSize=2,parameterConstraints=pConstraint)
 
 

Modified: pkg/quantstrat/demo/parameterTestMACD.R
===================================================================
--- pkg/quantstrat/demo/parameterTestMACD.R	2011-09-13 01:00:46 UTC (rev 775)
+++ pkg/quantstrat/demo/parameterTestMACD.R	2011-09-13 02:22:14 UTC (rev 776)
@@ -37,7 +37,7 @@
 
 
 laststpar.rnd<-system.time(
-		testPackListPL<-applyParameter(strategy=stratMACD,portfolios=portfolio.st,parameterPool=tPD2,method='random',sampleSize=20,parameterConstrains=pConstraint2)
+		testPackListPL<-applyParameter(strategy=stratMACD,portfolios=portfolio.st,parameterPool=tPD2,method='random',sampleSize=20,parameterConstraints=pConstraint2)
 )
 laststpar.rnd
 



More information about the Blotter-commits mailing list