Hmm, the trade ID normally changes when a trade is only partically closed, so that would be a hint why this happens - but it does not happen here when I test it. Maybe it is broker dependent. Which broker are you using?