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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Oct 14 18:12:04 CEST 2013


Author: braverock
Date: 2013-10-14 18:12:03 +0200 (Mon, 14 Oct 2013)
New Revision: 1526

Modified:
   pkg/quantstrat/R/osFUNs.R
Log:
- update addPosLimit to work iwth new .getPortfolio internal fn

Modified: pkg/quantstrat/R/osFUNs.R
===================================================================
--- pkg/quantstrat/R/osFUNs.R	2013-10-14 16:02:08 UTC (rev 1525)
+++ pkg/quantstrat/R/osFUNs.R	2013-10-14 16:12:03 UTC (rev 1526)
@@ -49,7 +49,7 @@
 #' @export
 addPosLimit <- function (portfolio, symbol, timestamp, maxpos, longlevels = 1, minpos = -maxpos, shortlevels = longlevels) 
 {
-	portf <- getPortfolio(portfolio)
+	portf <- .getPortfolio(portfolio)
   #catch error where maxpos/minpos have length greater than 1
 	if(length(maxpos)>1) maxpos <- maxpos[,1]
 	if(length(minpos)>1) minpos <- minpos[,1]



More information about the Blotter-commits mailing list