[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables Su
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-01-09 23:47:41
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16679/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables Modified Files: Summary.cs Log Message: - the IHistoricalQuoteProvider "concept" has been introduced Index: Summary.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables/Summary.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Summary.cs 6 Aug 2004 13:47:42 -0000 1.9 --- Summary.cs 9 Jan 2005 23:47:31 -0000 1.10 *************** *** 2,5 **** --- 2,6 ---- using System.Data; using QuantProject.ADT; + using QuantProject.Business.DataProviders; using QuantProject.Business.Financial.Instruments; using QuantProject.Business.Financial.Accounting.Reporting; *************** *** 14,17 **** --- 15,19 ---- { private AccountReport accountReport; + private IHistoricalQuoteProvider historicalQuoteProvider; private double totalPnl; private double buyAndHoldPercentageReturn; *************** *** 98,107 **** ! public Summary( AccountReport accountReport ) : ! base( accountReport.Name + " - Summary" ) ! { ! this.accountReport = accountReport; ! this.getSummary(); ! } #region "getSummary" private void getSummaryTable_setColumns( DataTable equityDataTable ) --- 100,120 ---- ! private void summary( AccountReport accountReport ) ! { ! this.accountReport = accountReport; ! this.getSummary(); ! } ! public Summary( AccountReport accountReport ) : ! base( accountReport.Name + " - Summary" ) ! { ! this.summary( accountReport ); ! } ! public Summary( AccountReport accountReport , ! IHistoricalQuoteProvider historicalDataProvider ) : ! base( accountReport.Name + " - Summary" ) ! { ! this.historicalQuoteProvider = historicalDataProvider; ! this.summary( accountReport ); ! } #region "getSummary" private void getSummaryTable_setColumns( DataTable equityDataTable ) *************** *** 125,129 **** getSummary_setRow( new TotalNetProfit( this ) , summaryDataTable ); getSummary_setRow( new ReturnOnAccount( this ) , summaryDataTable ); ! getSummary_setRow( new BuyAndHoldPercentageReturn( this ) , summaryDataTable ); getSummary_setRow( new AnnualSystemPercentageReturn( this ) , summaryDataTable ); this.maxEquityDrawDown = new MaxEquityDrawDown( this ); --- 138,143 ---- getSummary_setRow( new TotalNetProfit( this ) , summaryDataTable ); getSummary_setRow( new ReturnOnAccount( this ) , summaryDataTable ); ! getSummary_setRow( new BuyAndHoldPercentageReturn( this , this.historicalQuoteProvider ) , ! summaryDataTable ); getSummary_setRow( new AnnualSystemPercentageReturn( this ) , summaryDataTable ); this.maxEquityDrawDown = new MaxEquityDrawDown( this ); |