[Quantproject-developers] QuantProject/b3_Data/DataProviders HistoricalDataProvider.cs,1.8,1.9
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-07-31 20:04:19
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17976/b3_Data/DataProviders Modified Files: HistoricalDataProvider.cs Log Message: Fixed bug Index: HistoricalDataProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/HistoricalDataProvider.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** HistoricalDataProvider.cs 26 May 2005 23:42:25 -0000 1.8 --- HistoricalDataProvider.cs 31 Jul 2005 20:04:09 -0000 1.9 *************** *** 214,218 **** // } // ! private static double getQuote( string instrumentKey , DateTime dateTime , QuoteField quoteField ) { double returnValue; --- 214,218 ---- // } // ! /*private static double getQuote( string instrumentKey , DateTime dateTime , QuoteField quoteField ) { double returnValue; *************** *** 228,232 **** ).IndexOfKeyOrPrevious( dateTime ) ) ); return returnValue; ! } /// <summary> /// Returns the adjusted market value for the given ticker, at the given ExtendedDateTime --- 228,232 ---- ).IndexOfKeyOrPrevious( dateTime ) ) ); return returnValue; ! }*/ /// <summary> /// Returns the adjusted market value for the given ticker, at the given ExtendedDateTime *************** *** 263,271 **** double returnValue; if ( extendedDateTime.BarComponent == BarComponent.Close ) ! returnValue = getQuote( instrumentKey , extendedDateTime.DateTime , QuoteField.Close ); else // extendedDateTime.BarComponent is equal to BarComponent.Open ! returnValue = getQuote( instrumentKey , extendedDateTime.DateTime , QuoteField.Open ); return returnValue; --- 263,271 ---- double returnValue; if ( extendedDateTime.BarComponent == BarComponent.Close ) ! returnValue = privateCache.GetQuote( instrumentKey , extendedDateTime.DateTime , QuoteField.Close ); else // extendedDateTime.BarComponent is equal to BarComponent.Open ! returnValue = privateCache.GetQuote( instrumentKey , extendedDateTime.DateTime , QuoteField.Open ); return returnValue; |