Markets traded volatile and ended marginally in the green, in continuation to the prevailing trend.