TORONTO — Canadian and U.S. stock markets moved in opposite directions a day after broad surges over a ceasefire in the Middle East war.