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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Sep 30 14:59:02 CEST 2012


Author: braverock
Date: 2012-09-30 14:59:01 +0200 (Sun, 30 Sep 2012)
New Revision: 1205

Modified:
   pkg/quantstrat/R/rules.R
Log:
- remove rule.env


Modified: pkg/quantstrat/R/rules.R
===================================================================
--- pkg/quantstrat/R/rules.R	2012-09-30 06:08:52 UTC (rev 1204)
+++ pkg/quantstrat/R/rules.R	2012-09-30 12:59:01 UTC (rev 1205)
@@ -681,7 +681,7 @@
         if(!isTRUE(rule$enabled)) next()
         
         # check to see if we should run in this timespan
-        if(!is.null(rule$timespan) && nrow(rule.env$mktdata[timestamp][rule$timespan])==0) next()
+        if(!is.null(rule$timespan) && nrow(mktdata[timestamp][rule$timespan])==0) next()
         
         # see 'S Programming' p. 67 for this matching
         if(is.function(rule$name)) fun <- rule$name



More information about the Blotter-commits mailing list