[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders Ave
Brought to you by:
glauco_1
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders
In directory vz-cvs-3.sog:/tmp/cvs-serv15717
Modified Files:
AverageAndDebtAdjustedGrowthRateProvider.cs
LastAvailableGrowthRateProvider.cs LastAvailablePEProvider.cs
Log Message:
FinancialValueType enum has been used
Index: AverageAndDebtAdjustedGrowthRateProvider.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders/AverageAndDebtAdjustedGrowthRateProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AverageAndDebtAdjustedGrowthRateProvider.cs 16 Jan 2011 19:01:10 -0000 1.1
--- AverageAndDebtAdjustedGrowthRateProvider.cs 21 Aug 2011 13:05:31 -0000 1.2
***************
*** 64,68 ****
DataTable tableOfDebtEquityRatios =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, 64, 12, limitDateForEndingPeriodDate);//64 CODE FOR DEBT EQUITY RATIO
int numOfRows = tableOfDebtEquityRatios.Rows.Count;
if( numOfRows > 0)
--- 64,68 ----
DataTable tableOfDebtEquityRatios =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, FinancialValueType.DebtEquityRatio, 12, limitDateForEndingPeriodDate);
int numOfRows = tableOfDebtEquityRatios.Rows.Count;
if( numOfRows > 0)
***************
*** 112,119 ****
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
- //40 financial code for "net income"
DataTable tableOfEarnings =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, 40, 12, limitDateForEndingPeriodDate);
double averageGrowthRate =
this.getGrowthRate_getAverageGrowthRate(tableOfEarnings);
--- 112,118 ----
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
DataTable tableOfEarnings =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, FinancialValueType.NetIncome, 12, limitDateForEndingPeriodDate);
double averageGrowthRate =
this.getGrowthRate_getAverageGrowthRate(tableOfEarnings);
***************
*** 126,129 ****
--- 125,132 ----
return returnValue;
}
+ public override double GetValue( string ticker , DateTime atDate )
+ {
+ return this.GetGrowthRate(ticker, atDate);
+ }
}
}
Index: LastAvailablePEProvider.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders/LastAvailablePEProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LastAvailablePEProvider.cs 16 Jan 2011 19:01:10 -0000 1.1
--- LastAvailablePEProvider.cs 21 Aug 2011 13:05:31 -0000 1.2
***************
*** 55,61 ****
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
- //56 code for EPS; 12 months = length of period financial value refers to
returnValue =
! FinancialValues.GetLastFinancialValueForTicker(ticker, 56, 12,
limitDateForEndingPeriodDate);
return returnValue;
--- 55,60 ----
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
returnValue =
! FinancialValues.GetLastFinancialValueForTicker(ticker, FinancialValueType.EarningsPerShare, 12,
limitDateForEndingPeriodDate);
return returnValue;
***************
*** 75,78 ****
--- 74,81 ----
return returnValue;
}
+ public override double GetValue( string ticker , DateTime atDate )
+ {
+ return this.GetPERatio(ticker, atDate);
+ }
}
}
Index: LastAvailableGrowthRateProvider.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders/LastAvailableGrowthRateProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LastAvailableGrowthRateProvider.cs 16 Jan 2011 19:01:10 -0000 1.1
--- LastAvailableGrowthRateProvider.cs 21 Aug 2011 13:05:31 -0000 1.2
***************
*** 22,25 ****
--- 22,26 ----
using System;
using System.Data;
+ using QuantProject.ADT;
using QuantProject.DataAccess.Tables;
using QuantProject.Business.DataProviders;
***************
*** 52,59 ****
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
- //40 financial code for "net income"
DataTable tableOfEarnings =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, 40, 12, limitDateForEndingPeriodDate);
int numOfRows = tableOfEarnings.Rows.Count;
previousEarnings = (double)tableOfEarnings.Rows[numOfRows - 2]["fvValue"];
--- 53,61 ----
DateTime limitDateForEndingPeriodDate =
atDate.AddDays(- this.daysForAvailabilityOfData);
DataTable tableOfEarnings =
FinancialValues.GetLastFinancialValuesForTicker(
! ticker, FinancialValueType.NetIncome, 12, limitDateForEndingPeriodDate);
! string[] tableOfEarningsForDebugging =
! ExtendedDataTable.GetArrayOfStringFromRows(tableOfEarnings);
int numOfRows = tableOfEarnings.Rows.Count;
previousEarnings = (double)tableOfEarnings.Rows[numOfRows - 2]["fvValue"];
***************
*** 62,65 ****
--- 64,71 ----
return returnValue;
}
+ public override double GetValue( string ticker , DateTime atDate )
+ {
+ return this.GetGrowthRate(ticker, atDate);
+ }
}
}
|