The domestic stock markets ended higher, marking the third consecutive day of consolidation.