War, inflation and weak sentiment should be dragging stocks down. Instead, a mix of tech optimism, profits and investor ...