Permalink
Browse files

Comments.

  • Loading branch information...
1 parent 8509305 commit 7f2c3651445a77fab7f3e67dd147e778938b1f9b Matt White committed Apr 22, 2010
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/earnings_estimates.rb
View
@@ -24,16 +24,16 @@ def initialize(ticker)
end
# Analyzes earnings data and gives the security a score.
+ #Score is based on:
+ # * % of times beating estimates
+ # * % by which estimates were beat
+ # * Bonus for upward revisions:
+ # * 4 points for 7 days
+ # * 3 points for 30 days
+ # * 2 points for 60 days
+ # * 1 point for 90 days
+ # Max score is 40
def analyze
- #Score is based on:
- # % of times beating estimates
- # % by which estimates were beat
- # Bonus for upward revisions:
- # 4 points for 7 days
- # 3 points for 30 days
- # 2 points for 60 days
- # 1 point for 90 days
- # Max score is 40
percentages = percentages_to_f
@analysis = {
:average_beating_percentage => average_percent_beating(percentages),

0 comments on commit 7f2c365

Please sign in to comment.