Profit-taking and weaker metals and financial stocks weighed on the market, while foreign investment and lower oil prices have supported the recent rally. Traders are watching whether broad participation can sustain the gains.