how to invest in a flat market