There can be several reasons of not fully closing trades, like an NFA or FIFO issue or a closed market. You can normally see the reason in the MQ4 log. If not, please post the log.