Never connect any block below a 'sell/buy' now block unless ytou are storing info from the recently open trade. As this is clearly not the case, create a new block tree to close trades instead. That new tree should be headed by a 'For each trade' block.
T