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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Sep 8 16:41:29 CEST 2010


Author: braverock
Date: 2010-09-08 16:41:28 +0200 (Wed, 08 Sep 2010)
New Revision: 386

Modified:
   pkg/quantstrat/R/orders.R
Log:
- fix typo 'prices' -> 'price' in addOrder

Modified: pkg/quantstrat/R/orders.R
===================================================================
--- pkg/quantstrat/R/orders.R	2010-09-03 14:09:02 UTC (rev 385)
+++ pkg/quantstrat/R/orders.R	2010-09-08 14:41:28 UTC (rev 386)
@@ -238,7 +238,7 @@
 	
 	#handle order sets
 	#get the order set if length(price)>1
-	if(length(prices)>1) {
+	if(length(price)>1) {
 		order.set<-max(getOrders(portfolio=portfolio, symbol=symbol, status='open', timespan=timespan, ordertype=NULL, side=NULL,which.i=FALSE)$Order.Set)
 		if(is.na(order.set)) order.set<-1
 	} else {	



More information about the Blotter-commits mailing list