I believe that it's already working this way. Trades entered in the run function are pooled together and result in a single pool trade. Only when you trade intrabar, trades are not pooled because they happen at different times and thus must immediately trigger a pool trade.