Humans would have many thousands of years to select the appropriate asteroid and develop the necessary technology to deflect the giant rock in the direction of Earth.
Another way might be to select a trade before the market closed but hold it in an open browser for execution until the direction of after hours trading became clear.