[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRo
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-11-29 15:53:07
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13508/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows Modified Files: BuyAndHoldPercentageReturn.cs Log Message: ExtededDateTime has been replaced by EndOfDayDateTime Index: BuyAndHoldPercentageReturn.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/BuyAndHoldPercentageReturn.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BuyAndHoldPercentageReturn.cs 13 Nov 2003 23:19:47 -0000 1.1 --- BuyAndHoldPercentageReturn.cs 29 Nov 2004 15:52:56 -0000 1.2 *************** *** 4,7 **** --- 4,8 ---- using QuantProject.Business.Financial.Accounting.Reporting.Tables; using QuantProject.Business.Financial.Instruments; + using QuantProject.Business.Timing; namespace QuantProject.Business.Financial.Accounting.Reporting.SummaryRows *************** *** 19,27 **** Instrument buyAndHoldInstrument = new Instrument( summary.AccountReport.BuyAndHoldTicker ); summary.BuyAndHoldPercentageReturn = ! ( buyAndHoldInstrument.GetMarketValue( summary.AccountReport.EndDateTime ) - buyAndHoldInstrument.GetMarketValue( ! new ExtendedDateTime( summary.AccountReport.StartDateTime , BarComponent.Open ) ) ) / buyAndHoldInstrument.GetMarketValue( ! new ExtendedDateTime( summary.AccountReport.StartDateTime , BarComponent.Open ) ) * 100; this.rowDescription = "Buy & hold % return"; this.rowValue = summary.BuyAndHoldPercentageReturn; --- 20,29 ---- Instrument buyAndHoldInstrument = new Instrument( summary.AccountReport.BuyAndHoldTicker ); summary.BuyAndHoldPercentageReturn = ! ( buyAndHoldInstrument.GetMarketValue( ! summary.AccountReport.EndDateTime ) - buyAndHoldInstrument.GetMarketValue( ! new EndOfDayDateTime( summary.AccountReport.StartDateTime , EndOfDaySpecificTime.MarketOpen ) ) ) / buyAndHoldInstrument.GetMarketValue( ! new EndOfDayDateTime( summary.AccountReport.StartDateTime , EndOfDaySpecificTime.MarketOpen ) ) * 100; this.rowDescription = "Buy & hold % return"; this.rowValue = summary.BuyAndHoldPercentageReturn; |