Reinvest in bear markets and gradually sell in bull markets. If you reverse this, you might get stuck at the peak for years.