Dow, S&P end in red with Nasdaq positive at close