[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders Las
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2011-08-24 21:51:04
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders In directory vz-cvs-3.sog:/tmp/cvs-serv10025/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders Modified Files: LastAvailablePEProvider.cs Log Message: Modified the way P/E is computed when earnings are near to 0 Index: LastAvailablePEProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a4_Fundamentals/RatioProviders/LastAvailablePEProvider.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LastAvailablePEProvider.cs 21 Aug 2011 13:05:31 -0000 1.2 --- LastAvailablePEProvider.cs 24 Aug 2011 21:51:02 -0000 1.3 *************** *** 71,74 **** --- 71,79 ---- returnValue = priceAtDate / earningsPerShareAtDate; + if(returnValue > 1000.0) + //if earnings is zero or near to zero ... + returnValue = 1000.0; + else if(returnValue < -1000.0) + returnValue = -1000.0; return returnValue; |