Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1066/b4_Business/a2_Strategies
Modified Files:
EndOfDayStrategyBackTester.cs
Log Message:
- the interface ILogDescriptor is now implemented
- EndOfDayStrategyBackTester.DescriptionForLogFileName has been changed to EndOfDayStrategyBackTester.Description
Index: EndOfDayStrategyBackTester.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/EndOfDayStrategyBackTester.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EndOfDayStrategyBackTester.cs 7 Feb 2008 18:39:21 -0000 1.4
--- EndOfDayStrategyBackTester.cs 10 Feb 2008 14:17:51 -0000 1.5
***************
*** 38,42 ****
/// Performs a backtest for an end of day strategy
/// </summary>
! public class EndOfDayStrategyBackTester : IMessageSender
{
public event NewMessageEventHandler NewMessage;
--- 38,42 ----
/// Performs a backtest for an end of day strategy
/// </summary>
! public class EndOfDayStrategyBackTester : IMessageSender , ILogDescriptor
{
public event NewMessageEventHandler NewMessage;
***************
*** 112,119 ****
}
}
! /// <summary>
! /// a short description for the performed backtest
! /// </summary>
! public string DescriptionForLogFileName
{
get
--- 112,116 ----
}
}
! public string Description
{
get
***************
*** 128,133 ****
"_annlRtrn_" + this.AccountReport.Summary.AnnualSystemPercentageReturn.FormattedValue +
"_maxDD_" + this.AccountReport.Summary.MaxEquityDrawDown.FormattedValue +
! "_qtPrvdr_" + this.historicalQuoteProvider.ShortDescription +
! "_strtgy_" + this.endOfDayStrategy.DescriptionForLogFileName;
return description;
}
--- 125,130 ----
"_annlRtrn_" + this.AccountReport.Summary.AnnualSystemPercentageReturn.FormattedValue +
"_maxDD_" + this.AccountReport.Summary.MaxEquityDrawDown.FormattedValue +
! "_" + this.historicalQuoteProvider.Description +
! "_" + this.endOfDayStrategy.Description;
return description;
}
***************
*** 297,301 ****
1 , currentEndOfDayDateTime , this.benchmark.Ticker ,
this.historicalQuoteProvider );
! this.accountReport.Name = this.DescriptionForLogFileName;
// this.progressBarForm.Close();
--- 294,298 ----
1 , currentEndOfDayDateTime , this.benchmark.Ticker ,
this.historicalQuoteProvider );
! this.accountReport.Name = this.Description;
// this.progressBarForm.Close();
|