[Quantproject-developers] QuantDownloader/Downloader/OpenTickDownloader OTTickerDownloader.cs, 1.1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-02-08 15:05:22
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29936/Downloader/OpenTickDownloader Modified Files: OTTickerDownloader.cs Log Message: Last date is now supported for specific daily bars, also Index: OTTickerDownloader.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/OTTickerDownloader.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** OTTickerDownloader.cs 7 Feb 2009 16:55:31 -0000 1.10 --- OTTickerDownloader.cs 8 Feb 2009 15:05:09 -0000 1.11 *************** *** 47,50 **** --- 47,51 ---- private List<Time> dailyTimes; private DateTime firstDate; + private DateTime lastDate; private DateTime dateTimeForFirstBarOpenInNewYorkTimeZone; *************** *** 54,58 **** /// number of seconds in each bar /// </summary> ! private int barInterval; private DateTime dateTimeForOverWritingQuotes;//before this //date quotes should be overwritten automatically --- 55,59 ---- /// number of seconds in each bar /// </summary> ! private int barIntervalInSeconds; private DateTime dateTimeForOverWritingQuotes;//before this //date quotes should be overwritten automatically *************** *** 106,111 **** string[] tickersToDownload, List<Time> dailyTimes , ! DateTime firstDate, ! int barInterval , DateTime dateTimeForOverWritingQuotes, bool checkForMissingQuotes, --- 107,113 ---- string[] tickersToDownload, List<Time> dailyTimes , ! DateTime firstDate , ! DateTime lastDate , ! int barIntervalInSeconds , DateTime dateTimeForOverWritingQuotes, bool checkForMissingQuotes, *************** *** 126,130 **** this.dailyTimes = dailyTimes; this.firstDate = firstDate; ! this.barInterval = barInterval; this.dateTimeForOverWritingQuotes = dateTimeForOverWritingQuotes; this.checkForMissingQuotes = checkForMissingQuotes; --- 128,133 ---- this.dailyTimes = dailyTimes; this.firstDate = firstDate; ! this.lastDate = lastDate; ! this.barIntervalInSeconds = barIntervalInSeconds; this.dateTimeForOverWritingQuotes = dateTimeForOverWritingQuotes; this.checkForMissingQuotes = checkForMissingQuotes; *************** *** 156,160 **** this.dateTimeForFirstBarOpenInNewYorkTimeZone = dateTimeForFirstBarOpenInNewYorkTimeZone; this.dateTimeForLastBarOpenInNewYorkTimeZone = dateTimeForLastBarOpenInNewYorkTimeZone; ! this.barInterval = barInterval; this.dateTimeForOverWritingQuotes = DateTime.MaxValue; this.checkForMissingQuotes = false; --- 159,163 ---- this.dateTimeForFirstBarOpenInNewYorkTimeZone = dateTimeForFirstBarOpenInNewYorkTimeZone; this.dateTimeForLastBarOpenInNewYorkTimeZone = dateTimeForLastBarOpenInNewYorkTimeZone; ! this.barIntervalInSeconds = barInterval; this.dateTimeForOverWritingQuotes = DateTime.MaxValue; this.checkForMissingQuotes = false; *************** *** 220,225 **** this.tickersToDownload , this.setBarsSelector_getDate( this.firstDate ) , ! this.setBarsSelector_getDate( DateTime.Now ) , ! this.barInterval , this.dailyTimes ) ); else --- 223,228 ---- this.tickersToDownload , this.setBarsSelector_getDate( this.firstDate ) , ! this.setBarsSelector_getDate( this.lastDate ) , ! this.barIntervalInSeconds , this.dailyTimes ) ); else *************** *** 232,236 **** this.setBarsSelector_getDate( this.firstDate ) , this.setBarsSelector_getDate( DateTime.Now ) , ! this.barInterval , this.dailyTimes ) ); } --- 235,239 ---- this.setBarsSelector_getDate( this.firstDate ) , this.setBarsSelector_getDate( DateTime.Now ) , ! this.barIntervalInSeconds , this.dailyTimes ) ); } *************** *** 242,246 **** this.dateTimeForFirstBarOpenInNewYorkTimeZone , this.dateTimeForLastBarOpenInNewYorkTimeZone , ! this.barInterval ); } private void setOHLCRequester() --- 245,249 ---- this.dateTimeForFirstBarOpenInNewYorkTimeZone , this.dateTimeForLastBarOpenInNewYorkTimeZone , ! this.barIntervalInSeconds ); } private void setOHLCRequester() |