[Blotter-commits] r1055 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Jun 18 19:38:11 CEST 2012
Author: opentrades
Date: 2012-06-18 19:38:11 +0200 (Mon, 18 Jun 2012)
New Revision: 1055
Modified:
pkg/blotter/R/tradeStats.R
Log:
renamed column name Number.Trades to Num.Txns
Modified: pkg/blotter/R/tradeStats.R
===================================================================
--- pkg/blotter/R/tradeStats.R 2012-06-17 15:22:24 UTC (rev 1054)
+++ pkg/blotter/R/tradeStats.R 2012-06-18 17:38:11 UTC (rev 1055)
@@ -91,7 +91,7 @@
MedTradePL <- median(PL.ne0)
StdTradePL <- sd(as.numeric(as.vector(PL.ne0)))
- NumberOfTrades <- nrow(txn)-1
+ NumberOfTxns <- nrow(txn)-1
PercentPositive <- (nrow(PL.gt0)/nrow(PL.ne0))*100
PercentNegative <- (nrow(PL.lt0)/nrow(PL.ne0))*100
@@ -140,7 +140,7 @@
tmpret <- data.frame(Portfolio=pname,
Symbol=symbol,
- Num.Trades=NumberOfTrades,
+ Num.Txns=NumberOfTxns,
Total.Net.Profit=TotalNetProfit,
Avg.Trade.PL=AvgTradePL,
Med.Trade.PL=MedTradePL,
More information about the Blotter-commits
mailing list