[Blotter-commits] r1604 - pkg/quantstrat/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Apr 25 14:57:49 CEST 2014
Author: braverock
Date: 2014-04-25 14:57:49 +0200 (Fri, 25 Apr 2014)
New Revision: 1604
Modified:
pkg/quantstrat/R/orders.R
Log:
- add is.null check in TxnFees
Modified: pkg/quantstrat/R/orders.R
===================================================================
--- pkg/quantstrat/R/orders.R 2014-04-20 22:07:43 UTC (rev 1603)
+++ pkg/quantstrat/R/orders.R 2014-04-25 12:57:49 UTC (rev 1604)
@@ -285,6 +285,7 @@
if(is.na(qty)) stop("qty",qty,"must not be NA")
if(!is.numeric(price)) stop (paste("Price must be numeric:",price))
if(is.null(price)) stop("price ",price," must not be NULL")
+ if(is.null(TxnFees)) stop("TxnFees ",TxnFees," must not be NULL")
if(is.na(price)) stop("order at timestamp ", timestamp, " must not have price of NA")
#spreads can have a zero price
#if(price==0) warning(paste(ordertype, "order for", qty, "has a price of zero."))
More information about the Blotter-commits
mailing list