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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Sep 26 21:24:38 CEST 2011


Author: braverock
Date: 2011-09-26 21:24:37 +0200 (Mon, 26 Sep 2011)
New Revision: 796

Modified:
   pkg/quantstrat/R/initialize.R
Log:
- add dots per comment from Garrett

Modified: pkg/quantstrat/R/initialize.R
===================================================================
--- pkg/quantstrat/R/initialize.R	2011-09-26 19:01:26 UTC (rev 795)
+++ pkg/quantstrat/R/initialize.R	2011-09-26 19:24:37 UTC (rev 796)
@@ -4,8 +4,19 @@
 #
 ###############################################################################
 
+#' run standard and custom strategy initialization functions 
+#' @param strategy object of type \code{strategy} to initialize data/containers for
+#' @param portfolio 
+#' @param symbols 
+#' @param get.Symbols TRUE/FALSE, default TRUE: 
+#' @param init.Portf TRUE/FALSE, default TRUE: 
+#' @param init.Acct TRUE/FALSE, default TRUE: 
+#' @param init.Orders TRUE/FALSE, default TRUE: 
+#' @param unique TRUE/FALSE, default TRUE: 
+#' @param dots any other passtrhrough parameters
 #' @author Garrett See, Brian Peterson
-initStrategy <- function(strategy, portfolio, symbols, get.Symbols=TRUE, init.Portf=TRUE, init.Acct=TRUE, init.Orders=TRUE, unique=TRUE) {
+#' @export
+initStrategy <- function(strategy, portfolio, symbols, get.Symbols=TRUE, init.Portf=TRUE, init.Acct=TRUE, init.Orders=TRUE, unique=TRUE,...) {
     # basic idea is to do all the common set-up stuff
     # create portfolio, account, orderbook
     #if any 'symbols' are not defined as instruments, we'll make a basic instrument



More information about the Blotter-commits mailing list