[Quantproject-developers] QuantProject/b4_Business/a2_Strategies EndOfDayStrategyBackTester.cs, 1.1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-11-22 18:26:31
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3967/b4_Business/a2_Strategies Modified Files: EndOfDayStrategyBackTester.cs Log Message: bug fixed: the timer's GetCurrentDateTime() method was invoked after the timer was stopped Index: EndOfDayStrategyBackTester.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/EndOfDayStrategyBackTester.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** EndOfDayStrategyBackTester.cs 20 Nov 2008 20:55:36 -0000 1.13 --- EndOfDayStrategyBackTester.cs 22 Nov 2008 18:26:20 -0000 1.14 *************** *** 298,308 **** private void completeTheScript() { - this.actualLastDateTime = - ExtendedDateTime.Min( - this.lastDateTime , this.timer.GetCurrentDateTime() ); this.realDateTimeWhenTheBackTestIsStopped = DateTime.Now; this.accountReport = this.account.CreateReport( "" , 1 , ! this.timer.GetCurrentDateTime() , this.benchmark.Ticker , this.historicalMarketValueProvider ); this.accountReport.Name = this.Description; --- 298,305 ---- private void completeTheScript() { this.realDateTimeWhenTheBackTestIsStopped = DateTime.Now; this.accountReport = this.account.CreateReport( "" , 1 , ! this.actualLastDateTime , this.benchmark.Ticker , this.historicalMarketValueProvider ); this.accountReport.Name = this.Description; *************** *** 358,362 **** // this.actualLastDateTime = // ExtendedDateTime.Min( this.lastDateTime , currentDateTime ); ! this.timer.Stop(); --- 355,361 ---- // this.actualLastDateTime = // ExtendedDateTime.Min( this.lastDateTime , currentDateTime ); ! this.actualLastDateTime = ! ExtendedDateTime.Min( ! this.lastDateTime , this.timer.GetCurrentDateTime() ); this.timer.Stop(); |