[Quantproject-developers] QuantProject/b3_Data/DataTables GroupQuotes.cs,1.2,1.3
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-04-26 19:03:42
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataTables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9010/b3_Data/DataTables Modified Files: GroupQuotes.cs Log Message: Added static method for computation of Adj close to close ratios for an entire group of tickers Index: GroupQuotes.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataTables/GroupQuotes.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GroupQuotes.cs 6 Jan 2005 18:43:57 -0000 1.2 --- GroupQuotes.cs 26 Apr 2005 19:03:32 -0000 1.3 *************** *** 37,40 **** --- 37,52 ---- private string groupID; + //Static method for computing close to close ratios + //of all tickers belonging to a given group + static public void ComputeCloseToCloseRatios(string groupID) + { + DataTable tickers = + QuantProject.DataAccess.Tables.Tickers_tickerGroups.GetTickers(groupID); + foreach(DataRow row in tickers.Rows) + { + QuantProject.DataAccess.Tables.Quotes.ComputeAndCommitCloseToCloseRatios((string)row[0]); + } + } + public GroupQuotes( string groupID, DateTime startDate, DateTime endDate) { |