[Quantproject-developers] QuantProject/b4_Business/a3_Testing Tester.cs,1.2,1.3
Brought to you by:
glauco_1
|
From: <gla...@us...> - 2003-11-28 16:26:20
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a3_Testing
In directory sc8-pr-cvs1:/tmp/cvs-serv12334/b4_Business/a3_Testing
Modified Files:
Tester.cs
Log Message:
Changes to the Tester class:
- the TradingSystem property now is inherited
from the BackTester base class
- the Test method now overrides the abstract method
of the BackTester base class
Index: Tester.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a3_Testing/Tester.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Tester.cs 24 Nov 2003 20:10:26 -0000 1.2
--- Tester.cs 28 Nov 2003 16:26:17 -0000 1.3
***************
*** 39,43 ****
{
private TestWindow testWindow;
- private TradingSystems tradingSystems;
private OrderManager orderManager = new OrderManager();
private double initialCash = 0.0;
--- 39,42 ----
***************
*** 53,57 ****
{
this.testWindow = testWindow;
! this.tradingSystems = tradingSystems;
this.initialCash = initialCash;
this.Account.AddCash( new ExtendedDateTime( testWindow.StartDateTime , BarComponent.Open ) ,
--- 52,56 ----
{
this.testWindow = testWindow;
! this.TradingSystems = tradingSystems;
this.initialCash = initialCash;
this.Account.AddCash( new ExtendedDateTime( testWindow.StartDateTime , BarComponent.Open ) ,
***************
*** 72,76 ****
private void initializeTradingSystems()
{
! foreach (TradingSystem tradingSystem in tradingSystems)
{
tradingSystem.Parameters = this.Parameters;
--- 71,75 ----
private void initializeTradingSystems()
{
! foreach (TradingSystem tradingSystem in this.TradingSystems)
{
tradingSystem.Parameters = this.Parameters;
***************
*** 98,105 ****
private void testCurrentExtendedDateTime( ExtendedDateTime extendedDateTime )
{
! foreach (TradingSystem tradingSystem in this.tradingSystems)
testCurrentDateForTradingSystem( tradingSystem , extendedDateTime );
}
! public void Test()
{
DateTime dateTime = this.testWindow.StartDateTime;
--- 97,104 ----
private void testCurrentExtendedDateTime( ExtendedDateTime extendedDateTime )
{
! foreach (TradingSystem tradingSystem in this.TradingSystems)
testCurrentDateForTradingSystem( tradingSystem , extendedDateTime );
}
! public override void Test()
{
DateTime dateTime = this.testWindow.StartDateTime;
|