Markets trend higher ahead of the closing bell, tech stocks lead sector gains