[Blotter-commits] r1451 - pkg/quantstrat/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Apr 29 13:48:31 CEST 2013


Author: opentrades
Date: 2013-04-29 13:48:30 +0200 (Mon, 29 Apr 2013)
New Revision: 1451

Modified:
   pkg/quantstrat/R/rules.R
Log:
- fixed test for curIndex going over boundary in nextIndex()



Modified: pkg/quantstrat/R/rules.R
===================================================================
--- pkg/quantstrat/R/rules.R	2013-04-25 13:50:15 UTC (rev 1450)
+++ pkg/quantstrat/R/rules.R	2013-04-29 11:48:30 UTC (rev 1451)
@@ -527,7 +527,7 @@
             }
         }
         
-        if (is.na(curIndex) || curIndex > length(index(mktdata))) curIndex=FALSE
+        if (is.na(curIndex) || curIndex > length(Dates)) curIndex=FALSE
 
         #debug line
         #print(paste('curIndex ==', curIndex))



More information about the Blotter-commits mailing list