[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/Eligibles ByMostDiscountedPrices.
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2011-08-21 13:51:23
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Eligibles
In directory vz-cvs-3.sog:/tmp/cvs-serv17954/Eligibles
Modified Files:
ByMostDiscountedPrices.cs
Log Message:
Minor improvements to the class have been added
Index: ByMostDiscountedPrices.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Eligibles/ByMostDiscountedPrices.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ByMostDiscountedPrices.cs 16 Jan 2011 18:34:18 -0000 1.2
--- ByMostDiscountedPrices.cs 21 Aug 2011 13:51:21 -0000 1.3
***************
*** 112,120 ****
if(!initialTableFromWhichToChooseTheMostDiscountedTickers.Columns.Contains("RelativeDifferenceBetweenFairAndMarketPrice"))
initialTableFromWhichToChooseTheMostDiscountedTickers.Columns.Add("RelativeDifferenceBetweenFairAndMarketPrice", System.Type.GetType("System.Double"));
! foreach(DataRow row in initialTableFromWhichToChooseTheMostDiscountedTickers.Rows)
{
try{
currentFairPrice = this.fairValueProvider.GetFairValue( (string)row[0],
! date.AddDays(-this.numOfDaysForFundamentalAnalysis),
date );
row["FairPrice"] = currentFairPrice;
--- 112,121 ----
if(!initialTableFromWhichToChooseTheMostDiscountedTickers.Columns.Contains("RelativeDifferenceBetweenFairAndMarketPrice"))
initialTableFromWhichToChooseTheMostDiscountedTickers.Columns.Add("RelativeDifferenceBetweenFairAndMarketPrice", System.Type.GetType("System.Double"));
! this.fairValueProvider.Run(date);
! foreach(DataRow row in initialTableFromWhichToChooseTheMostDiscountedTickers.Rows)
{
try{
currentFairPrice = this.fairValueProvider.GetFairValue( (string)row[0],
! //date.AddDays(-this.numOfDaysForFundamentalAnalysis),
date );
row["FairPrice"] = currentFairPrice;
***************
*** 150,153 ****
--- 151,157 ----
tableOfEligibleTickers.PrimaryKey = columnPrimaryKeys;
+ string[] tableOfEligibleTickersForDebugging =
+ ExtendedDataTable.GetArrayOfStringFromRows(tableOfEligibleTickers);
+
return new EligibleTickers(tableOfEligibleTickers);
}
***************
*** 167,170 ****
--- 171,176 ----
group = new SelectorByGroup(this.tickersGroupID);
DataTable tickersFromGroup = group.GetTableOfSelectedTickers();
+ string[] tickersFromGroupForDebugging =
+ ExtendedDataTable.GetArrayOfStringFromRows(tickersFromGroup);
SelectorByNumOfMinGrowingIncomesInARow selectorByMinimumGrowingIncomes =
new SelectorByNumOfMinGrowingIncomesInARow(tickersFromGroup, history.FirstDateTime,
***************
*** 175,178 ****
--- 181,187 ----
selectorByMinimumGrowingIncomes.GetTableOfSelectedTickers();
+ string[] tickersWithPositiveGrowingIncomesForDebugging =
+ ExtendedDataTable.GetArrayOfStringFromRows(tickersWithPositiveGrowingIncomes);
+
return this.getEligibleTickers_actually_getTableOfMostDiscountedTickers(tickersWithPositiveGrowingIncomes, currentDate);
|