Majority of the time you want to stay with the trend cause it's less hazardous to your P&L. But there are always stocks moving against the market. If you can identify them, and figure out which setup is the best to trade those stocks counter trend, then I see no problem with it. I do it all the time, and have pretty good success.