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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jun 29 03:18:19 CEST 2010


Author: braverock
Date: 2010-06-29 03:18:19 +0200 (Tue, 29 Jun 2010)
New Revision: 347

Modified:
   pkg/quantstrat/R/traderules.R
Log:
- add dots to osFun call in ruleSignal fn, per msg from Krish Maheswaran

Modified: pkg/quantstrat/R/traderules.R
===================================================================
--- pkg/quantstrat/R/traderules.R	2010-06-24 13:42:44 UTC (rev 346)
+++ pkg/quantstrat/R/traderules.R	2010-06-29 01:18:19 UTC (rev 347)
@@ -15,7 +15,7 @@
 #' @param timestamp timestamp coercible to POSIXct that will be the time the order will be inserted on 
 #' @param sigcol column name to check for signal
 #' @param sigval signal value to match against
-#' @param orderqty numeric quantity of the desired order, modified by osFUN
+#' @param orderqty numeric quantity of the desired order, or 'all', modified by osFUN
 #' @param ordertype one of "market","limit","stoplimit", or "stoptrailing"
 #' @param orderside one of either "long" or "short", default NULL, see details 
 #' @param threshold numeric or function threshold to apply to trailing stop orders, default NULL, see Details
@@ -40,7 +40,7 @@
         if(orderqty>0 & orderqty<1){
             # TODO add proportional order?  or should that go in order sizing function?
         } 
-        orderqty <- osFUN(strategy=strategy, mktdata=mktdata, timestamp=timestamp, orderqty=orderqty, ordertype=ordertype, orderside=orderside, portfolio=portfolio, symbol=symbol)
+        orderqty <- osFUN(strategy=strategy, mktdata=mktdata, timestamp=timestamp, orderqty=orderqty, ordertype=ordertype, orderside=orderside, portfolio=portfolio, symbol=symbol,...=...)
         #calculate order price using pricemethod
         pricemethod<-pricemethod[1] #only use the first if not set by calling function
         switch(pricemethod,



More information about the Blotter-commits mailing list