The right investing strategy can help protect against volatility.