private bool TwoHoursToEndDay() { DateTime closingTime = market.TimeTracker.MarketCloseTime; TimeSpan hoursToEndDay = closingTime.Subtract(market.GetCurrentTime()); return(hoursToEndDay <= TimeSpan.FromHours(2)); }