Currently it's not possible to track trade profit/loss with a script for nations that purchase resources for consumption.
It would be helpful if there were a comment box or check box to mark which trades were for consumption and which were for trading.