Update of /cvsroot/quantproject/QuantDownloader/Downloader
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10110/Downloader
Modified Files:
TickerDownloader.cs
Log Message:
- Quotes.GetStartDate calls have been replaced by Quotes.GetFirstQuoteDate calls
- Quotes.GetEndDate calls have been replaced by Quotes.GetLastQuoteDate calls
Index: TickerDownloader.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerDownloader.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** TickerDownloader.cs 2 Jul 2006 20:04:15 -0000 1.20
--- TickerDownloader.cs 3 Sep 2006 13:45:57 -0000 1.21
***************
*** 315,319 ****
private void downloadTickerBeforeFirstQuote()
{
! this.endDate = Quotes.GetStartDate(this.p_quTicker);
this.resetStartDateIfNecessary();
this.checkForNewAdjustedAndContinueOrStop();
--- 315,319 ----
private void downloadTickerBeforeFirstQuote()
{
! this.endDate = Quotes.GetFirstQuoteDate(this.p_quTicker);
this.resetStartDateIfNecessary();
this.checkForNewAdjustedAndContinueOrStop();
***************
*** 343,348 ****
this.updateCurrentStatusAdjustedClose("Changed!");
if (Quotes.IsAdjustedCloseToCloseRatioChanged(this.p_quTicker,
! this.getTableOfDownloadedValues(Quotes.GetStartDate(this.p_quTicker),
! Quotes.GetEndDate(this.p_quTicker))) &&
this.p_myForm.IsCheckCloseToCloseSelected)
{
--- 343,348 ----
this.updateCurrentStatusAdjustedClose("Changed!");
if (Quotes.IsAdjustedCloseToCloseRatioChanged(this.p_quTicker,
! this.getTableOfDownloadedValues(Quotes.GetFirstQuoteDate(this.p_quTicker),
! Quotes.GetLastQuoteDate(this.p_quTicker))) &&
this.p_myForm.IsCheckCloseToCloseSelected)
{
***************
*** 359,363 ****
this.updateAdjustedClose();
this.updateCurrentStatusAdjustedClose("Updated!");
! this.downloadedValuesFromSource = this.getTableOfDownloadedValues(Quotes.GetEndDate(this.p_quTicker),
DateTime.Now);
this.commitDownloadedValuesToDatabase();
--- 359,363 ----
this.updateAdjustedClose();
this.updateCurrentStatusAdjustedClose("Updated!");
! this.downloadedValuesFromSource = this.getTableOfDownloadedValues(Quotes.GetLastQuoteDate(this.p_quTicker),
DateTime.Now);
this.commitDownloadedValuesToDatabase();
***************
*** 396,400 ****
private void downloadTickerAfterLastQuote()
{
! this.startDate = Quotes.GetEndDate(this.p_quTicker);
this.endDate = DateTime.Today;
this.checkForNewAdjustedAndContinueOrStop();
--- 396,400 ----
private void downloadTickerAfterLastQuote()
{
! this.startDate = Quotes.GetLastQuoteDate(this.p_quTicker);
this.endDate = DateTime.Today;
this.checkForNewAdjustedAndContinueOrStop();
|