You must not manually close any virtual trade. Only your strategy is supposed to do that when a stop is triggered or a close condition is fulfilled. I can not see from your post if something is wrong with your trades, but if you think so, please post them here.