[Blotter-commits] r405 - pkg/blotter/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Oct 5 15:20:59 CEST 2010


Author: braverock
Date: 2010-10-05 15:20:59 +0200 (Tue, 05 Oct 2010)
New Revision: 405

Modified:
   pkg/blotter/R/getTxn.R
Log:
- add Net Realized P&L to getTxns summary report

Modified: pkg/blotter/R/getTxn.R
===================================================================
--- pkg/blotter/R/getTxn.R	2010-10-04 20:29:13 UTC (rev 404)
+++ pkg/blotter/R/getTxn.R	2010-10-05 13:20:59 UTC (rev 405)
@@ -16,7 +16,7 @@
     # Outputs
     # Table of transactions made in the Symbol during the time period given
     TxnData = Portfolio$symbols[[Symbol]]$txn
-    Txns = TxnData[Date,c('Txn.Qty', 'Txn.Price', 'Txn.Fees', 'Txn.Value', 'Txn.Avg.Cost')]
+    Txns = TxnData[Date,c('Txn.Qty', 'Txn.Price', 'Txn.Fees', 'Txn.Value', 'Txn.Avg.Cost', 'Net.Txn.Realized.PL')]
     return(Txns)
 }
 



More information about the Blotter-commits mailing list