[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting Account.cs,1.10,1.11
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-12-29 17:05:36
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18124/b4_Business/a1_Financial/a2_Accounting Modified Files: Account.cs Log Message: - GetMarketValue() has been overridden: now a new method allows to compute the account market value with respect to the current EndOfDayDateTime Index: Account.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Account.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Account.cs 15 Dec 2004 23:13:47 -0000 1.10 --- Account.cs 29 Dec 2004 17:05:24 -0000 1.11 *************** *** 215,218 **** --- 215,227 ---- this.endOfDayTimer.GetCurrentTime().GetNearestExtendedDateTime() ); } + /// <summary> + /// Returns the total account value ( cash + position value ) + /// </summary> + /// <returns></returns> + public double GetMarketValue() + { + return this.cashAmount + + this.Portfolio.GetMarketValue( this.endOfDayTimer.GetCurrentTime() ); + } public double GetProfitNetLoss( EndOfDayDateTime endOfDayDateTime ) { |