Markets traded in a narrow range and ended marginally lower amid mixed cues.