[Blotter-commits] r164 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Jan 15 22:32:36 CET 2010
Author: peter_carl
Date: 2010-01-15 22:32:35 +0100 (Fri, 15 Jan 2010)
New Revision: 164
Modified:
pkg/blotter/R/calcPosAvgCost.R
pkg/blotter/R/calcTxnAvgCost.R
Log:
- added default to ConMult, fixed bug in parameters
Modified: pkg/blotter/R/calcPosAvgCost.R
===================================================================
--- pkg/blotter/R/calcPosAvgCost.R 2010-01-15 21:25:41 UTC (rev 163)
+++ pkg/blotter/R/calcPosAvgCost.R 2010-01-15 21:32:35 UTC (rev 164)
@@ -1,5 +1,5 @@
`calcPosAvgCost` <-
-function(PrevPosQty, PrevPosAvgCost, TxnValue, PosQty)
+function(PrevPosQty, PrevPosAvgCost, TxnValue, PosQty, ConMult=1)
{ # @author Peter Carl
# DESCRIPTION:
Modified: pkg/blotter/R/calcTxnAvgCost.R
===================================================================
--- pkg/blotter/R/calcTxnAvgCost.R 2010-01-15 21:25:41 UTC (rev 163)
+++ pkg/blotter/R/calcTxnAvgCost.R 2010-01-15 21:32:35 UTC (rev 164)
@@ -1,5 +1,5 @@
`calcTxnAvgCost` <-
-function(TxnValue, TxnQty, ConMult)
+function(TxnValue, TxnQty, ConMult=1)
{ # @author Peter Carl
# DESCRIPTION:
More information about the Blotter-commits
mailing list