[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting Portfolio.cs,1.3,1.4
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-12-29 17:12:07
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19417/b4_Business/a1_Financial/a2_Accounting Modified Files: Portfolio.cs Log Message: Bug fixed: the Portfolio market value is properly computed now, when more than one ticker is in the Portfolio Index: Portfolio.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Portfolio.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Portfolio.cs 13 Dec 2004 01:52:34 -0000 1.3 --- Portfolio.cs 29 Dec 2004 17:11:57 -0000 1.4 *************** *** 130,134 **** double totalValue = 0; foreach (Position position in this.Values) ! totalValue = position.Instrument.GetMarketValue( endOfDayDateTime ) * position.Quantity; return totalValue; } --- 130,134 ---- double totalValue = 0; foreach (Position position in this.Values) ! totalValue += position.Instrument.GetMarketValue( endOfDayDateTime ) * position.Quantity; return totalValue; } |