S&P 500 ticks higher, on track to break three-day losing streak