Exemple #1
0
 /// <summary>
 /// Segment II ( Weeks 5-8)
 /// Pointer Seven: (p73)
 ///   Follow-up Performances.
 ///     If a team is strong against the spread after an outright loss (I check back one year on this)
 ///     I will look to bet them after a loss.  If a team plays poorly after a win, I will look to bet 
 ///     against them after a win.  Getting to know each team's personality is important using 
 ///     this model.
 ///     Interpretation:  Team is strong if they cover the spread >= 60%, week if they lose to the
 ///                      spread >= 60%.
 /// 
 /// </summary>
 /// <param name="team"></param>
 /// <param name="upcomingGame"></param>
 /// <returns></returns>
 public static string FollowupPerformance( NflTeam team, NFLGame upcomingGame )
 {
     string followupCode = "";
      decimal spreadRecord;
      NFLGame previousGame = team.PreviousGame( upcomingGame.GameDate );
      if ( previousGame.Won( team ) )
      {
     spreadRecord = team.SpreadRecordAfterWin( upcomingGame.GameDate );
     if ( spreadRecord >= KStrongAgainstSpread )
        followupCode = "s";
     else if ( spreadRecord <= KWeekAgainstSpread )
        followupCode = "w";
      }
      else
      {
     spreadRecord = team.SpreadRecordAfterLoss( upcomingGame.GameDate );
     if ( spreadRecord >= KStrongAgainstSpread )
        followupCode = "w";
     else if ( spreadRecord <= KWeekAgainstSpread )
        followupCode = "s";
      }
      return followupCode;
 }