Flips close and open positions