tick trend-day calculator error handling