You can contact Support when you have difficulties with a broker plugin implementation. Plugin support is free. BTW, a negative number by BrokerTrade after partial closing is certainly wrong, since that means always a fully closed trade. And your plugin must also handle trade ID changes. Otherwise partial closing would not work with your plugin.