Markets ended almost unchanged amid volatility, taking a breather after the recent fall.