Stocks were narrowly mixed as a Wall Street rally failed to extend into day two. A mix of retail earnings pulled markets in opposite directions as investors moved on from geopolitical headlines. Advance Auto Parts Inc.  (AAP) was the worst performer on the S&P 500 after falling short of quarterly profit. Revenue was flat. For the full year, the auto retailer anticipates a 1% to 3% drop in same-store sales. TJX Companies Inc.  (TJX) posted surprise earnings growth over its recent quarter. The parent of off-price retailer T.J. Maxx also boosted its fiscal 2018 profit guidance. Optimism among home builders unexpectedly improved in August after reaching an eight-month low in July. The measure increased by four points to a level of 68. Analysts expected a retreat.

More from Video

TheStreet Rewind: How to Make 'New Fashioned Wall Streeter'; Twist on a Classic

TheStreet Rewind: How to Make 'New Fashioned Wall Streeter'; Twist on a Classic

Thankfully Our Favorite #FearlessGirl is Not Going Anywhere

Thankfully Our Favorite #FearlessGirl is Not Going Anywhere

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

It's Dumb to Think Legalizing Weed Is Still a Political Issue

It's Dumb to Think Legalizing Weed Is Still a Political Issue

Video: How to Select Mutual Funds in Your 401(k)

Video: How to Select Mutual Funds in Your 401(k)