close trade and book profit