Update of /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8020/b4_Business/a05_Timing
Modified Files:
IndexBasedEndOfDayTimer.cs
Log Message:
Added CurrentDateArrayPosition property, in order to know the array's position of the timer's current date.
Index: IndexBasedEndOfDayTimer.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing/IndexBasedEndOfDayTimer.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** IndexBasedEndOfDayTimer.cs 20 Dec 2005 19:35:53 -0000 1.6
--- IndexBasedEndOfDayTimer.cs 30 Apr 2006 14:51:15 -0000 1.7
***************
*** 22,25 ****
--- 22,26 ----
using System;
using System.Collections;
+ using System.Data;
using QuantProject.Data.DataTables;
***************
*** 40,46 ****
get { return this.marketIndex; }
}
private Quotes indexQuotes;
! public IndexBasedEndOfDayTimer( EndOfDayDateTime startDateTime,
string marketIndex): base(startDateTime)
{
--- 41,58 ----
get { return this.marketIndex; }
}
+
private Quotes indexQuotes;
+ public Quotes IndexQuotes
+ {
+ get { return this.indexQuotes; }
+ }
+
+ private int currentDateArrayPosition;
+ public int CurrentDateArrayPosition
+ {
+ get { return this.currentDateArrayPosition ; }
+ }
! public IndexBasedEndOfDayTimer( EndOfDayDateTime startDateTime,
string marketIndex): base(startDateTime)
{
***************
*** 57,60 ****
--- 69,73 ----
EndOfDaySpecificTime.MarketOpen);
this.tickers = new Hashtable();
+ this.currentDateArrayPosition = 0;
}
***************
*** 81,86 ****
--- 94,101 ----
this.currentTime.DateTime =
this.indexQuotes.GetFollowingDate(this.currentTime.DateTime, 1);
+ this.currentDateArrayPosition++;
}
this.currentTime.EndOfDaySpecificTime = nextSpecificTime;
+
}
/// <summary>
|