[Blotter-commits] r1021 - pkg/quantstrat/R
    noreply at r-forge.r-project.org 
    noreply at r-forge.r-project.org
       
    Tue May  8 23:17:49 CEST 2012
    
    
  
Author: braverock
Date: 2012-05-08 23:17:49 +0200 (Tue, 08 May 2012)
New Revision: 1021
Modified:
   pkg/quantstrat/R/orders.R
Log:
- modify prior commit to use as.character instead to support (again) order.qty='all'
	- thanks to Jan Humme (OpenTrades) for spotting the discrepancy
Modified: pkg/quantstrat/R/orders.R
===================================================================
--- pkg/quantstrat/R/orders.R	2012-05-08 15:26:31 UTC (rev 1020)
+++ pkg/quantstrat/R/orders.R	2012-05-08 21:17:49 UTC (rev 1021)
@@ -280,7 +280,7 @@
     else ordertime<-as.POSIXct(timestamp)+delay
     orders<-NULL
     for (i in 1:length(price)) {
-        neworder<-xts(as.matrix(t(c(as.numeric(qty[i]), 
+        neworder<-xts(as.matrix(t(c(as.character(qty[i]), 
                                     price[i], 
                                     ordertype[i], 
                                     side, 
    
    
More information about the Blotter-commits
mailing list