Fixed closePosition to include orderType