Stocks gain as megacap earnings land; dollar firm after Fed pause